docs - various examples fixes

This commit is contained in:
bunkerity
2021-08-20 09:38:18 +02:00
parent a824e15684
commit 58f2926e95
8 changed files with 15 additions and 5 deletions

View File

@@ -12,6 +12,7 @@ services:
- NODE_ENV=production
labels:
- "bunkerized-nginx.SERVER_NAME=app1.example.com" # replace with your domain
- "bunkerized-nginx.USE_REVERSE_PROXY=yes"
- "bunkerized-nginx.REVERSE_PROXY_URL=/"
- "bunkerized-nginx.REVERSE_PROXY_HOST=http://myapp1:3000"
@@ -25,6 +26,7 @@ services:
- NODE_ENV=production
labels:
- "bunkerized-nginx.SERVER_NAME=app2.example.com" # replace with your domain
- "bunkerized-nginx.USE_REVERSE_PROXY=yes"
- "bunkerized-nginx.REVERSE_PROXY_URL=/"
- "bunkerized-nginx.REVERSE_PROXY_HOST=http://myapp2:3000"
@@ -38,6 +40,7 @@ services:
- NODE_ENV=production
labels:
- "bunkerized-nginx.SERVER_NAME=app3.example.com" # replace with your domain
- "bunkerized-nginx.USE_REVERSE_PROXY=yes"
- "bunkerized-nginx.REVERSE_PROXY_URL=/"
- "bunkerized-nginx.REVERSE_PROXY_HOST=http://myapp3:3000"

View File

@@ -6,6 +6,10 @@ Gogs is an easy to install, cross-platform and lightweight self-hosted Git servi
<img src="https://github.com/bunkerity/bunkerized-nginx/blob/dev/examples/gogs/architecture.png?raw=true" />
## Configuration
You will need to edit the `data-gogs/gogs/conf/app.ini` with your own settings.
## Docker
See [docker-compose.yml](https://github.com/bunkerity/bunkerized-nginx/blob/master/examples/gogs/docker-compose.yml).

View File

@@ -0,0 +1,3 @@
[server]
EXTERNAL_URL = https://www.example.com/
DOMAIN = www.example.com

View File

@@ -22,7 +22,7 @@ services:
- USE_GZIP=yes
- USE_REVERSE_PROXY=yes
- REVERSE_PROXY_URL=/
- REVERSE_PROXY_HOST=http://mygogs:3000/
- REVERSE_PROXY_HOST=http://mygogs:3000
mygogs:
image: gogs/gogs

View File

@@ -35,7 +35,7 @@ metadata:
bunkerized-nginx: "yes"
annotations:
bunkerized-nginx.SERVER_NAME: "app2.example.com"
bunkerized-nginx.REMOTE_PHP: "app2"
bunkerized-nginx.REMOTE_PHP: "app2.default.svc.cluster.local"
bunkerized-nginx.REMOTE_PHP_PATH: "/var/www/html"
bunkerized-nginx.AUTO_LETS_ENCRYPT: "yes"
spec:

View File

@@ -29,7 +29,7 @@ metadata:
bunkerized-nginx.SERVER_NAME: "app3.example.com"
bunkerized-nginx.USE_REVERSE_PROXY: "yes"
bunkerized-nginx.REVERSE_PROXY_URL: "/"
bunkerized-nginx.REVERSE_PROXY_HOST: "http://app3"
bunkerized-nginx.REVERSE_PROXY_HOST: "http://app3.default.svc.cluster.local"
bunkerized-nginx.AUTO_LETS_ENCRYPT: "yes"
spec:
type: ClusterIP