mirror of
https://github.com/StepanovPlaton/HomeServerServices.git
synced 2026-04-03 20:30:44 +04:00
Add basic proxy
This commit is contained in:
26
proxy/nginx/conf.d/default.conf.example
Normal file
26
proxy/nginx/conf.d/default.conf.example
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user