nginx for static
This commit is contained in:
parent
107055504f
commit
5cd46f5ae1
@ -44,7 +44,7 @@ cd reclame && pip3 install -r requirements.txt && cp data/slideshow.json.dist da
|
||||
|
||||
### Forever with systemctl
|
||||
```bash
|
||||
sudo cp reclame.service /etc/systemd/system/reclame.service
|
||||
sudo cp system/reclame.service /etc/systemd/system/reclame.service
|
||||
sudo systemctl daemon-reload
|
||||
sudo systemctl enable reclame.service
|
||||
sudo systemctl start reclame.service
|
||||
@ -52,9 +52,9 @@ sudo systemctl start reclame.service
|
||||
|
||||
## Prepare your Slideshow
|
||||
Everything slideshow-related happens in the ./data/uploads folder.
|
||||
- Put some images into the /data/uploads folder. Ideally with the same resultion of the screen (eg. 1920x1080px).
|
||||
- Put some images into the /data/uploads folder. Ideally with the same resolution of the screen (eg. 1920x1080px).
|
||||
- Edit the slideshow.json
|
||||
|
||||
## You are done now :)
|
||||
If everything is set up correctly, the RaspberryPi shall start chromium in fullscreen directly after bootup and after some seconds of showing the date & time (default.html) your slideshow shall start and loop endlessly.
|
||||
If everything is set up correctly, the RaspberryPi shall start chromium in fullscreen directly after boot screen and after some seconds of showing the date & time (default.html) your slideshow shall start and loop endlessly.
|
||||
|
||||
|
||||
22
system/nginx-reclame
Executable file
22
system/nginx-reclame
Executable file
@ -0,0 +1,22 @@
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
|
||||
server_name _;
|
||||
|
||||
location / {
|
||||
proxy_connect_timeout 60;
|
||||
proxy_read_timeout 60;
|
||||
proxy_send_timeout 60;
|
||||
proxy_intercept_errors on;
|
||||
proxy_http_version 1.1;
|
||||
proxy_pass http://localhost:5000;
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header X-Forwarded-Proto $scheme;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
}
|
||||
|
||||
error_log /var/log/nginx/reclame.error.log;
|
||||
access_log /var/log/nginx/reclame.access.log;
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user