docs - various examples fixes
This commit is contained in:
@@ -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"
|
||||
|
||||
|
||||
@@ -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).
|
||||
|
||||
3
examples/gogs/data-gogs/gogs/conf/app.ini
Normal file
3
examples/gogs/data-gogs/gogs/conf/app.ini
Normal file
@@ -0,0 +1,3 @@
|
||||
[server]
|
||||
EXTERNAL_URL = https://www.example.com/
|
||||
DOMAIN = www.example.com
|
||||
@@ -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
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user