Files
msv-webcam-frontend/README.md
2025-08-15 18:00:28 +02:00

54 lines
1.3 KiB
Markdown

# msv-webcam-frontend
0) Get [backend running](https://git.mosad.xyz/localhorst/msv-webcam-backend)
1) copy WebApp to `/var/www/html/msv-buehl-moos.de/webcam/`
2) Import following nginx config:
```
server
{
listen 80;
listen [::]:80;
server_name msv-buehl-moos.de www.msv-buehl-moos.de;
return 301 https://$host$request_uri;
}
server
{
server_name msv-buehl-moos.de www.msv-buehl-moos.de;
listen 443 ssl;
listen [::]:443 ssl;
add_header Strict-Transport-Security max-age=31536000;
ssl_certificate /etc/letsencrypt/live/msv-buehl-moos.de/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/msv-buehl-moos.de/privkey.pem;
location /
{
client_max_body_size 10G;
proxy_buffering off;
proxy_pass http://127.0.0.1:27964;
proxy_set_header Accept-Encoding "";
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
# Serve /webcam/data/camera/ from the FTPS current folder
location /webcam/data/camera/
{
alias /home/dockeruser/ftps_server/files/current/;
autoindex on;
}
# Generic /webcam location for the rest of the content
location /webcam
{
root /var/www/html/msv-buehl-moos.de;
index index.html;
}
}
```
3) Test config with `nginx -t`
4) Restart nginx with `systemctl restart nginx.service`