examples - nextcloud fix and tomcat

This commit is contained in:
bunkerity 2020-11-06 22:24:34 +01:00
parent 761c14a0b8
commit 798f6c726d
No known key found for this signature in database
GPG Key ID: 654FFF51CEF7CC47
4 changed files with 32 additions and 0 deletions

View File

@ -25,6 +25,7 @@ services:
- LIMIT_REQ_RATE=40r/s
- LIMIT_REQ_BURST=60
- ALLOWED_METHODS=GET|POST|HEAD|PROPFIND|DELETE|PUT|MKCOL|MOVE|COPY|PROPPATCH|REPORT
- X_FRAME_OPTIONS=SAMEORIGIN
mync:
image: nextcloud:stable-fpm

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;
}