Update default.conf

This commit is contained in:
Mikhail 2024-03-06 22:57:40 +00:00
parent f4548fee7f
commit dc4e696482

@ -320,6 +320,66 @@ server {
ssl_certificate /etc/nginx/certs/live/pena.digital/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/nginx/certs/live/pena.digital/privkey.pem; # managed by Certbot
}
server {
root /usr/share/nginx/html;
index index.html index.htm index.nginx-debian.html;
server_name tourism.pena.digital; # managed by Certbot
client_max_body_size 70M;
location /robots.txt {
try_files $uri $uri/ /index.html;
}
location /404 {
try_files $uri $uri/ /index.html;
}
location /feedback/ {
add_header Access-Control-Allow-Origin pena.digital always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type always;
proxy_set_header Host $host;
proxy_pass http://10.8.0.8:8006/;
}
location / {
proxy_pass http://tourizmland;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/nginx/certs/live/pena.digital/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/nginx/certs/live/pena.digital/privkey.pem; # managed by Certbot
}
server {
root /usr/share/nginx/html;
index index.html index.htm index.nginx-debian.html;
server_name solyanka.pena.digital; # managed by Certbot
client_max_body_size 70M;
location /robots.txt {
try_files $uri $uri/ /index.html;
}
location /404 {
try_files $uri $uri/ /index.html;
}
location /feedback/ {
add_header Access-Control-Allow-Origin pena.digital always;
add_header Access-Control-Allow-Credentials true always;
add_header Access-Control-Allow-Headers content-type always;
proxy_set_header Host $host;
proxy_pass http://10.8.0.8:8006/;
}
location / {
proxy_pass http://commonquiz;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/nginx/certs/live/pena.digital/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/nginx/certs/live/pena.digital/privkey.pem; # managed by Certbot
}
server {
listen 80 ;