Update nginx/default.conf
This commit is contained in:
parent
b377247a44
commit
0821cc3625
1 changed files with 11 additions and 2 deletions
|
|
@ -1,6 +1,15 @@
|
|||
server {
|
||||
listen 8080;
|
||||
server_name localhost;
|
||||
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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue