Add basic proxy

This commit is contained in:
2026-01-04 06:56:55 -06:00
parent 65d8337742
commit a6ec3b9cc4
11 changed files with 166 additions and 0 deletions

View File

@@ -0,0 +1,26 @@
server {
listen 80;
server_name domain.dynnamn.ru domain2.dynnamn.ru;
location /.well-known/acme-challenge/ {
root /var/www/certbot;
}
location / {
return 301 https://$host$request_uri;
}
}
server {
listen 443 ssl;
server_name domain.dynnamn.ru;
ssl_certificate /etc/letsencrypt/live/domain.dynnamn.ru/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/domain.dynnamn.ru/privkey.pem;
location / {
return 200 "Hello world!";
# proxy_pass http://your_app_container:port;
# proxy_set_header Host $host;
}
}