Skip to content

Commit

Permalink
add nginx.conf
Browse files Browse the repository at this point in the history
  • Loading branch information
vimagick committed Jul 10, 2024
1 parent 22a4c64 commit a4006f5
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
server {
listen 80 default_server;
server_name _;
location / {
return 301 https://$host:443$request_uri;
}
}

server {
listen 443 ssl;
server_name node-red.easypi.duckdns.org;
ssl_certificate ssl/easypi.crt;
ssl_certificate_key ssl/easypi.key;
ssl_protocols TLSv1 TLSv1.1 TLSv1.2;
ssl_ciphers HIGH:!aNULL:!MD5;
location / {
proxy_pass http://127.0.0.1:1880;
proxy_http_version 1.1;
proxy_set_header Connection "upgrade";
proxy_set_header Host $host:$server_port;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header X-Real-IP $remote_addr;
}
}

0 comments on commit a4006f5

Please sign in to comment.