mirror of
https://github.com/EDCD/EDDN.git
synced 2025-04-20 02:27:40 +03:00
Fix HTTPS upstream
This commit is contained in:
parent
2cf8022b60
commit
e80f559931
@ -25,22 +25,10 @@ server {
|
||||
# GATEWAY UPSTREAM
|
||||
upstream gateway {
|
||||
server 127.0.0.1:8081 fail_timeout=0;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 8080;
|
||||
server_name eddn.edcd.io eddn-gateway.elite-markets.net;
|
||||
|
||||
location / {
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_redirect off;
|
||||
|
||||
proxy_pass http://gateway;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 4430;
|
||||
listen 4430 ssl;
|
||||
server_name eddn.edcd.io eddn-gateway.elite-markets.net;
|
||||
|
||||
location / {
|
||||
@ -48,6 +36,9 @@ server {
|
||||
proxy_set_header Host $http_host;
|
||||
proxy_redirect off;
|
||||
|
||||
proxy_pass http://gateway;
|
||||
}
|
||||
proxy_pass https://gateway;
|
||||
}
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/eddn.edcd.io/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/eddn.edcd.io/privkey.pem;
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user