Add nginx configs
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
server {
|
||||
listen 80 default_server;
|
||||
listen [::]:80 default_server;
|
||||
server_name xalexbor.fvds.ru;
|
||||
|
||||
# Редирект на HTTPS
|
||||
return 301 https://xalexbor.fvds.ru$request_uri;
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2 default_server;
|
||||
listen [::]:443 ssl http2 default_server;
|
||||
server_name xalexbor.fvds.ru;
|
||||
|
||||
ssl_certificate /etc/letsencrypt/live/xalexbor.fvds.ru/fullchain.pem;
|
||||
ssl_certificate_key /etc/letsencrypt/live/xalexbor.fvds.ru/privkey.pem;
|
||||
include /etc/letsencrypt/options-ssl-nginx.conf;
|
||||
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem;
|
||||
|
||||
root /var/www/html;
|
||||
index index.html index.htm index.nginx-debian.html;
|
||||
|
||||
location /static {
|
||||
alias /home/xzv/static/;
|
||||
}
|
||||
|
||||
location /docxbot {
|
||||
include proxy_params;
|
||||
proxy_pass http://localhost:8003;
|
||||
}
|
||||
|
||||
location /seawarbot {
|
||||
include proxy_params;
|
||||
proxy_pass http://localhost:8006;
|
||||
}
|
||||
|
||||
location /eve {
|
||||
include proxy_params;
|
||||
proxy_pass http://localhost:8005;
|
||||
}
|
||||
|
||||
location / {
|
||||
include proxy_params;
|
||||
proxy_pass http://localhost:8001;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user