parent
28aa60d712
commit
45cae54638
@ -0,0 +1,27 @@ |
||||
server { |
||||
listen 80; |
||||
server_name social.${DOMAIN_NAME}; |
||||
location / { |
||||
return 301 https://$host$request_uri; |
||||
} |
||||
} |
||||
|
||||
server { |
||||
server_name social.${DOMAIN_NAME}; |
||||
client_max_body_size 128m; |
||||
|
||||
location / { |
||||
proxy_pass http://spacestation:6001; |
||||
proxy_set_header Host $host; |
||||
proxy_set_header X-Forwarded-For $remote_addr; |
||||
proxy_set_header X-Forwarded-Proto https; |
||||
} |
||||
|
||||
listen 443 ssl; |
||||
ssl_certificate /etc/letsencrypt/live/${DOMAIN_NAME}/fullchain.pem; |
||||
ssl_certificate_key /etc/letsencrypt/live/${DOMAIN_NAME}/privkey.pem; |
||||
include /etc/letsencrypt/options-ssl-nginx.conf; |
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; |
||||
} |
||||
|
||||
|
Loading…
Reference in new issue