Files
fdn2/cicd/nginx/nginx.conf
T
2024-07-16 23:33:12 +02:00

58 lines
1.5 KiB
Nginx Configuration File

worker_processes 1;
events { worker_connections 1024; }
http {
client_max_body_size 5M;
server {
listen 80;
server_name ifattidinapoli.it;
return 301 https://www.ifattidinapoli.it$request_uri;
}
server {
listen 443 ssl;
server_name ifattidinapoli.it;
ssl_certificate /etc/ssl/2024/www_ifattidinapoli_it.chained.crt;
ssl_certificate_key /etc/ssl/2024/www_ifattidinapoli_it.chained.key;
return 301 https://www.ifattidinapoli.it$request_uri;
}
server {
listen 80;
server_name www.ifattidinapoli.it preproduction.ifattidinapoli.it;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
server_name www.ifattidinapoli.it preproduction.ifattidinapoli.it default_server;
ssl_certificate /etc/ssl/2024/www_ifattidinapoli_it.chained.crt;
ssl_certificate_key /etc/ssl/2024/www_ifattidinapoli_it.chained.key;
location / {
proxy_pass http://fdn2.production.webserver/;
proxy_redirect off;
proxy_set_header Host $host;
}
}
server {
listen 80;
server_name test.ifattidinapoli.it;
location / {
proxy_pass http://fdn2.test.webserver/;
proxy_redirect off;
proxy_set_header Host $host;
}
}
}