-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathweather-station.config
36 lines (31 loc) · 962 Bytes
/
weather-station.config
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
# This config should be sym-linked from /etc/nginx/sites-enabled/weather-station.config on the Raspberry Pi
server {
listen 80;
listen [::]:80;
server_name raspberrypi.local;
access_log /var/log/nginx/weather-station.log;
location / {
proxy_pass http://127.0.0.1:8000;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Prefix /;
proxy_intercept_errors on;
}
error_page 500 /500.html;
location = /500.html {
root /usr/share/nginx/html;
internal;
}
location = /lady-on-garden-bench.svg {
root /usr/share/nginx/html;
}
error_page 404 /404.html;
location = /404.html {
root /usr/share/nginx/html;
internal;
}
location = /happy_birdie.svg {
root /usr/share/nginx/html;
}
}