http+https

This commit is contained in:
Artur 2024-10-06 20:44:40 +02:00
parent fb42e5ee1b
commit c3a5f69046
1 changed files with 24 additions and 0 deletions

View File

@ -0,0 +1,24 @@
server {
listen 80 default_server;
server_tokens off;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
proxy_pass http://arti-angular-app:4200;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Host $host;
proxy_set_header X-Forwarded-Port $server_port;
}
}