Added Nginx

This commit is contained in:
DerGrumpf 2024-11-25 23:16:41 +01:00
parent a3d39d0d4a
commit d5c83e93ae
10 changed files with 37 additions and 1 deletions

View File

@ -1,4 +1,4 @@
include:
- ../proxy/compose.yml
- ../proxy/velocity/compose.yml
- ../fallback/compose.yml
- ../monitoring/compose.yml

10
proxy/nginx/compose.yml Normal file
View File

@ -0,0 +1,10 @@
services:
nginx:
image: nginx:1.15-alpine
ports:
- "80:80"
- "443:443"
volumes:
- ./data/nginx:/etc/nginx/conf.d
certbot:
image: certbot/certbot

View File

@ -0,0 +1,13 @@
server {
listen 80;
server_name example.org; location / {
return 301 https://$host$request_uri;
}
}server {
listen 443 ssl;
server_name example.org;
location / {
proxy_pass http://example.org; #for demo purposes
}
}

View File

@ -0,0 +1,13 @@
server {
listen 80;
server_name example.org; location / {
return 301 https://$host$request_uri;
}
}server {
listen 443 ssl;
server_name example.org;
location / {
proxy_pass http://example.org; #for demo purposes
}
}

View File

Before

Width:  |  Height:  |  Size: 9.7 KiB

After

Width:  |  Height:  |  Size: 9.7 KiB