thomas-shop/nginx/alex-go.conf

37 lines
970 B
Plaintext
Raw Permalink Normal View History

2022-05-02 16:26:06 +02:00
server {
listen 80;
listen [::]:80;
server_name ;
client_max_body_size 20M;
#charset koi8-r;
# access_log /usr/local/var/log/nginx/.access.log;
# error_log /usr/local/var/log/nginx/.error.log;
location /static {
alias /var/www/alex-go/dist;
gzip_static on;
expires max;
add_header Cache-Control public;
}
location /favicon {
return 404 "Not Found";
}
location /robots.txt {
return 404 "Not Found";
}
location / {
proxy_pass http://unix://var/www/alex-go/run/flip.sock;
proxy_set_header Host $http_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;
client_max_body_size 5m;
}
}