2022-11-15 00:34:50 +01:00
|
|
|
server {
|
|
|
|
listen 80;
|
2023-07-09 22:02:51 +02:00
|
|
|
server_name www.wojciechkozlowski.eu;
|
2022-11-15 00:34:50 +01:00
|
|
|
|
|
|
|
location ^~ /.well-known {
|
|
|
|
allow all;
|
|
|
|
root /var/www/html;
|
|
|
|
}
|
|
|
|
|
|
|
|
location / {
|
|
|
|
return 301 https://$server_name$request_uri;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
server {
|
2023-07-09 22:02:51 +02:00
|
|
|
listen 127.0.0.1:443 ssl;
|
|
|
|
server_name www.wojciechkozlowski.eu;
|
2022-11-15 00:34:50 +01:00
|
|
|
|
2023-07-09 22:02:51 +02:00
|
|
|
ssl_certificate /etc/letsencrypt/live/www.wojciechkozlowski.eu/fullchain.pem;
|
|
|
|
ssl_certificate_key /etc/letsencrypt/live/www.wojciechkozlowski.eu/privkey.pem;
|
|
|
|
ssl_trusted_certificate /etc/letsencrypt/live/www.wojciechkozlowski.eu/chain.pem;
|
2022-11-15 00:34:50 +01:00
|
|
|
|
|
|
|
location / {
|
|
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
|
|
proxy_set_header Host $host;
|
2023-07-09 22:02:51 +02:00
|
|
|
proxy_pass http://pod-www;
|
2022-11-15 00:34:50 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
error_page 500 502 503 504 /50x.html;
|
|
|
|
location = /50x.html {
|
|
|
|
root /usr/share/nginx/html;
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|