examples - nextcloud fix and tomcat
This commit is contained in:
parent
761c14a0b8
commit
798f6c726d
@ -25,6 +25,7 @@ services:
|
|||||||
- LIMIT_REQ_RATE=40r/s
|
- LIMIT_REQ_RATE=40r/s
|
||||||
- LIMIT_REQ_BURST=60
|
- LIMIT_REQ_BURST=60
|
||||||
- ALLOWED_METHODS=GET|POST|HEAD|PROPFIND|DELETE|PUT|MKCOL|MOVE|COPY|PROPPATCH|REPORT
|
- ALLOWED_METHODS=GET|POST|HEAD|PROPFIND|DELETE|PUT|MKCOL|MOVE|COPY|PROPPATCH|REPORT
|
||||||
|
- X_FRAME_OPTIONS=SAMEORIGIN
|
||||||
|
|
||||||
mync:
|
mync:
|
||||||
image: nextcloud:stable-fpm
|
image: nextcloud:stable-fpm
|
||||||
|
|||||||
BIN
examples/tomcat/app/sample.war
Normal file
BIN
examples/tomcat/app/sample.war
Normal file
Binary file not shown.
25
examples/tomcat/docker-compose.yml
Normal file
25
examples/tomcat/docker-compose.yml
Normal 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/
|
||||||
6
examples/tomcat/server-confs/reverse-proxy.conf
Normal file
6
examples/tomcat/server-confs/reverse-proxy.conf
Normal 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;
|
||||||
|
}
|
||||||
Loading…
x
Reference in New Issue
Block a user