nginx.conf ssl
This commit is contained in:
parent
cfff9c9df0
commit
7f77140e0f
@ -5,6 +5,15 @@ upstream gunicorn {
|
||||
server {
|
||||
listen 80;
|
||||
server_name cybercode.pro;
|
||||
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443;
|
||||
server_name cybercode.pro;
|
||||
location / {
|
||||
proxy_pass http://gunicorn;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user