51 lines
1.2 KiB
Text
51 lines
1.2 KiB
Text
server {
|
|
listen 8443 ssl http2;
|
|
server_name lomes.local;
|
|
ssl_certificate /etc/nginx/certs/meshpi.crt;
|
|
ssl_certificate_key /etc/nginx/certs/meshpi.key;
|
|
location / {
|
|
#proxy_pass http://<INTERNAL_IP>:<INTERNAL_PORT>;
|
|
proxy_set_header Host $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;
|
|
}
|
|
|
|
root /usr/share/nginx/html;
|
|
index index.html index.htm;
|
|
|
|
location / {
|
|
try_files $uri $uri/ =404;
|
|
}
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
internal;
|
|
}
|
|
|
|
location ~ /\.ht {
|
|
deny all;
|
|
}
|
|
|
|
gzip on;
|
|
gzip_disable "msie6";
|
|
|
|
gzip_vary on;
|
|
gzip_proxied any;
|
|
gzip_comp_level 6;
|
|
gzip_buffers 16 8k;
|
|
gzip_http_version 1.1;
|
|
gzip_types
|
|
text/plain
|
|
text/css
|
|
text/xml
|
|
text/javascript
|
|
application/javascript
|
|
application/x-javascript
|
|
application/json
|
|
application/xml
|
|
application/xml+rss
|
|
font/ttf
|
|
font/otf
|
|
image/svg+xml;
|
|
}
|