2019-01-06 18:02:15 +00:00
|
|
|
server {
|
|
|
|
root /var/www/html;
|
|
|
|
index index.html index.htm index.nginx-debian.html;
|
|
|
|
server_name admin360.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/;
|
|
|
|
}
|
2019-01-17 09:50:45 +00:00
|
|
|
|
|
|
|
location /fa/ {
|
|
|
|
root /opt/vpnmanager/static/;
|
|
|
|
}
|
2019-01-17 09:59:34 +00:00
|
|
|
|
|
|
|
location /bs/ {
|
|
|
|
root /opt/vpnmanager/static/;
|
|
|
|
}
|
2019-01-17 16:15:31 +00:00
|
|
|
|
|
|
|
location /css/ {
|
|
|
|
root /opt/vpnmanager/static/;
|
|
|
|
}
|
2019-01-06 18:02:15 +00:00
|
|
|
|
|
|
|
location / {
|
|
|
|
uwsgi_pass 127.0.0.1:9360;
|
|
|
|
uwsgi_read_timeout 300;
|
|
|
|
include uwsgi_params;
|
|
|
|
}
|
|
|
|
|
|
|
|
listen 136.243.186.63:443 ssl; # managed by Certbot
|
|
|
|
ssl_certificate /etc/letsencrypt/live/admin360.kumi.host/fullchain.pem; # managed by Certbot
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/admin360.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 {
|
|
|
|
return 301 https://admin360.kumi.host$request_uri;
|
|
|
|
server_name admin360.kumi.host;
|
|
|
|
|
|
|
|
listen [::]:80 default_server;
|
|
|
|
listen 80 default_server;
|
|
|
|
}
|