cleanup for new backend
This commit is contained in:
59
README.md
59
README.md
@ -1,13 +1,54 @@
|
||||
# msv-webcam-frontend
|
||||
|
||||
- `zypper install avif-tools`
|
||||
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:
|
||||
|
||||
- `mkdir /opt/msv-webcam-frontend/`
|
||||
- `cd /opt/msv-webcam-frontend/`
|
||||
- import `msv_webcam_frontend.py`
|
||||
- `chmod +x /opt/msv-webcam-frontend/msv_webcam_frontend.py`
|
||||
- `nano /etc/systemd/system/msv-webcam-frontend.service`
|
||||
- create dst dir `mkdir -p /var/www/html/msv-buehl-moos.de/webcam/data/camera/`
|
||||
- `systemctl daemon-reload && systemctl enable --now msv-webcam-frontend.service`
|
||||
```
|
||||
server
|
||||
{
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
server_name msv-buehl-moos.de www.msv-buehl-moos.de;
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
|
||||
- copy WebApp to `/var/www/html/msv-buehl-moos.de/webcam/`
|
||||
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`
|
||||
Reference in New Issue
Block a user