Added Nginx
This commit is contained in:
parent
a3d39d0d4a
commit
d5c83e93ae
@ -1,4 +1,4 @@
|
|||||||
include:
|
include:
|
||||||
- ../proxy/compose.yml
|
- ../proxy/velocity/compose.yml
|
||||||
- ../fallback/compose.yml
|
- ../fallback/compose.yml
|
||||||
- ../monitoring/compose.yml
|
- ../monitoring/compose.yml
|
||||||
|
10
proxy/nginx/compose.yml
Normal file
10
proxy/nginx/compose.yml
Normal 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
|
13
proxy/nginx/data/nginx/map.garde-studios.de
Normal file
13
proxy/nginx/data/nginx/map.garde-studios.de
Normal 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
|
||||||
|
}
|
||||||
|
}
|
13
proxy/nginx/data/nginx/monitoring.garde-studios.de
Normal file
13
proxy/nginx/data/nginx/monitoring.garde-studios.de
Normal 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
|
||||||
|
}
|
||||||
|
}
|
Before Width: | Height: | Size: 9.7 KiB After Width: | Height: | Size: 9.7 KiB |
Loading…
Reference in New Issue
Block a user