intval3/nginx.conf

49 lines
1.5 KiB
Nginx Configuration File
Raw Normal View History

2018-10-07 20:00:35 +00:00
#uncomment to host with ssl and redirect from http
#not advised
#server {
# listen 80;
# server_name example.com;
# return 301 https://$server_name$request_uri;
#}
server {
2018-10-07 21:16:22 +00:00
listen 80 default_server;
listen [::]:80 default_server;
2018-10-07 20:00:35 +00:00
#listen 443 ssl;
#ssl on;
#ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem;
#ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem;
#ssl_session_timeout 5m;
#ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
#ssl_ciphers "HIGH:!aNULL:!MD5 or HIGH:!aNULL:!MD5:!3DES";
#ssl_prefer_server_ciphers on;
server_name intval3.local;
location / {
proxy_pass http://127.0.0.1:6699/;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Real-IP $remote_addr;
#no need for gzip at this time, adds processing overhead
#gzip on;
#gzip_comp_level 5;
#gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;
}
2018-10-07 21:16:22 +00:00
location /static/ {
alias /home/pi/intval3/app/www/static/;
#uncomment to turn on caching
#expires modified 1y;
access_log off;
#add_header Cache-Control "public";
gzip on;
gzip_comp_level 5;
gzip_types text/plain text/css application/x-javascript text/xml application/xml application/xml+rss text/javascript application/json;
}
2018-10-07 20:00:35 +00:00
}