kopia lustrzana https://github.com/glidernet/ogn-python
21 wiersze
413 B
Plaintext
21 wiersze
413 B
Plaintext
server {
|
|
listen 80;
|
|
server_name api.example.com;
|
|
|
|
location / {
|
|
proxy_pass "http://localhost:5000";
|
|
proxy_redirect off;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
fastcgi_read_timeout 300s;
|
|
proxy_read_timeout 300;
|
|
}
|
|
|
|
location /static {
|
|
alias /home/pi/ogn-python/app/static/;
|
|
}
|
|
|
|
error_log /var/log/nginx/api-error.log;
|
|
access_log /var/log/nginx/api-access.log;
|
|
}
|