server { root /var/www/html; index index.html index.htm index.nginx-debian.html; server_name test360.kumi.host; # managed by Certbot location /.well-known/ { try_files $uri $uri/ =404; } location /static { alias /opt/vpnmanager/static/static_root/; } location /js/ { root /opt/vpnmanager/static/; } location /fa/ { root /opt/vpnmanager/lib/; } location /bs/ { root /opt/vpnmanager/lib/; } location /css/ { root /opt/vpnmanager/static/; } location /jq/ { root /opt/vpnmanager/lib/; } location /img/ { root /opt/vpnmanager/static/; } location / { uwsgi_pass 127.0.0.1:9360; uwsgi_read_timeout 900; include uwsgi_params; } listen 5.9.180.2:443 ssl; # managed by Certbot ssl_certificate /etc/letsencrypt/live/test360.kumi.host/fullchain.pem; # managed by Certbot ssl_certificate_key /etc/letsencrypt/live/test360.kumi.host/privkey.pem; # managed by Certbot include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot } server { if ($host = test360.kumi.host) { return 301 https://$host$request_uri; } # managed by Certbot listen 80 default_server; server_name test360.kumi.host; return 404; # managed by Certbot }