examples - nextcloud fix and tomcat

This commit is contained in:
bunkerity
2020-11-06 22:24:34 +01:00
parent 761c14a0b8
commit 798f6c726d
4 changed files with 32 additions and 0 deletions

Binary file not shown.

View File

@@ -0,0 +1,25 @@
version: '3'
services:
myreverse:
image: bunkerity/bunkerized-nginx
restart: always
ports:
- 80:8080
- 443:8443
volumes:
- ./letsencrypt:/etc/letsencrypt
- ./server-confs:/server-confs
environment:
- SERVER_NAME=app1.website.com # replace with your domain
- SERVE_FILES=no
- DISABLE_DEFAULT_SERVER=yes
- REDIRECT_HTTP_TO_HTTPS=yes
- AUTO_LETS_ENCRYPT=yes
mytomcat:
image: tomcat
restart: always
volumes:
- ./app:/usr/local/tomcat/webapps/

View File

@@ -0,0 +1,6 @@
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
location / {
proxy_pass http://mytomcat:8080/sample$request_uri;
}