nginx.conf ssl

This commit is contained in:
zakhy 2024-10-10 10:59:36 +07:00
parent cfff9c9df0
commit 7f77140e0f

View File

@ -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;