Tags: scottbarnesg/smart-sec-cam
Tags
Build docker images in Github Workflow (#54) * Create github workflow for building docker images * Fix branch reference in docker build file * Add runs-on parameter * Try to fix path to docker files * Fix path to dockerfiles * Update docker-compose to point at latest images * Remove running on PRs * Update README * More README updates * More README updates * Bump version to 0.3.8 --------- Co-authored-by: Scott Barnes <sgbarnes@protonmail.com>
Run camera streamer code as a systemd service (#43) * Add base .service file and script to configure it * Fix working directory in service file * Fix path to ExecStart and WorkingDirectory * Add shebang to run.sh to fix running under systemd Co-authored-by: Scott Barnes <sgbarnes@protonmail.com>
Automatically refresh token, redirect to login on token expiration (#39) * Refresh token every N seconds * Catch validateToken exceptions and redirect to login page * Use token TTL from server to time token refresh * Reduce token TTL for testing, token refresh occurs at the right time but fails after first refresh * Token refresh working * Fix timers not stopping on page navigation * Revert short token TTL from testing Co-authored-by: Scott Barnes <sgbarnes@protonmail.com>
Add authentication (#32) * Initial authentication implementation * Implement token authentication for api endpoints * Rewrite components to be functional, add authentication to video stream page * Implement authentication for viewing recorded videos * Caching token in cookie and refreshing on load * Add registration page * Move api endpoints behind /api/ url * Read enable registration from env variable * Fix routing issue, read token from cookie everywhere * Validate token on all pages * Create database filesystem dir if it doesn't exist * Update docker-compose volume mounts * Run auth db setup in constructor * Remove excess logs from Registration page * Update README for authentication * Update look of the UI * Fix background color * CSS tweaks Co-authored-by: Scott Barnes <sgbarnes@protonmail.com>
PreviousNext