2023-05-07 11:03:39 +00:00
|
|
|
server {
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
|
|
|
|
index index.html index.htm index.nginx-debian.html;
|
2024-01-26 22:11:44 +00:00
|
|
|
server_name quiz.pena.digital; # managed by Certbot
|
2024-01-04 13:44:34 +00:00
|
|
|
client_max_body_size 70M;
|
2023-05-07 11:52:43 +00:00
|
|
|
|
2024-01-24 00:23:44 +00:00
|
|
|
location /404 {
|
|
|
|
try_files $uri $uri/ /index.html;
|
|
|
|
}
|
2023-05-07 11:52:43 +00:00
|
|
|
|
2023-05-07 11:03:39 +00:00
|
|
|
location / {
|
2024-01-26 22:11:44 +00:00
|
|
|
proxy_pass http://squiz;
|
|
|
|
}
|
|
|
|
|
|
|
|
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 pena.digital; # managed by Certbot
|
|
|
|
client_max_body_size 70M;
|
|
|
|
|
|
|
|
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://services;
|
2023-05-07 11:03:39 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
listen 443 ssl; # managed by Certbot
|
2024-01-24 17:35:41 +00:00
|
|
|
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
|
2023-05-07 11:03:39 +00:00
|
|
|
|
|
|
|
}
|
|
|
|
server {
|
|
|
|
listen 80 ;
|
|
|
|
listen [::]:80 ;
|
|
|
|
server_name _;
|
2024-01-24 00:39:51 +00:00
|
|
|
|
|
|
|
location /.well-known/acme-challenge/ {
|
|
|
|
root /var/www/certbot;
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
return 301 https://$host$request_uri;
|
|
|
|
}
|
2023-05-07 11:03:39 +00:00
|
|
|
}
|