Skip to content
Snippets Groups Projects
Commit 894145a3 authored by Jeffrey Phillips Freeman's avatar Jeffrey Phillips Freeman :boom:
Browse files

Fixed some bugs in the container preventing startup

parent 90797e19
No related branches found
No related tags found
No related merge requests found
Pipeline #693 passed with stage
in 44 seconds
......@@ -10,7 +10,6 @@ Opertes in two modes, `proxy` and `redirect
See also `docker-compose.yml` file.
#### General Options
The following engiernment variables can be set in any mode.
......@@ -61,9 +60,9 @@ docker-compose up -d
With `docker`
```bash
docker run -e SERVER_REDIRECT=www.example.com -p 8888:80 schmunk42/nginx-redirect
docker run -e SERVER_REDIRECT=www.example.com -e SERVER_REDIRECT_PATH=/landingpage -p 8888:80 schmunk42/nginx-redirect
docker run -e SERVER_REDIRECT=www.example.com -e SERVER_REDIRECT_PATH=/landingpage -e SERVER_REDIRECT_SCHEME=https -p 8888:80 schmunk42/nginx-redirect
docker run -e SERVER_REDIRECT=www.example.com -p 8888:80 qotoorg/nginx-redirect
docker run -e SERVER_REDIRECT=www.example.com -e SERVER_REDIRECT_PATH=/landingpage -p 8888:80 qotoorg/nginx-redirect
docker run -e SERVER_REDIRECT=www.example.com -e SERVER_REDIRECT_PATH=/landingpage -e SERVER_REDIRECT_SCHEME=https -p 8888:80 qotoorg/nginx-redirect
```
## Resources
......
nginx-redirect:
image: qoto/nginx-redirect
build: .
image: qotoorg/nginx-redirect
ports:
- "8888:80"
- "80"
environment:
- SERVER_REDIRECT=www.example.com
- "SERVER_NAME=swarmpit.qoto.org"
- "PROXY_HOST=internal.swarm.qoto.org"
- "PROXY_PORT=888"
#- SERVER_REDIRECT=www.example.com
# optionally define path to redirect all requests
# if not set nginx var $request_uri is used
#- SERVER_REDIRECT_PATH=/landingpage
......
......@@ -30,7 +30,7 @@ if [ -n "$PROXY_HOST" ] ; then
sed -i '/^##START_SSL_SERVER##/,/^##END_SSL_SERVER##/{/^##START_SSL_SERVER##/!{/^##END_SSL_SERVER##/!d}}' /etc/nginx/conf.d/default.conf
sed -i 's/^##[^#]*##$//g' /etc/nginx/conf.d/default.conf
else
else lets just remove the comment blocks and make it pretty.
#else lets just remove the comment blocks and make it pretty.
sed -i 's/^##[^#]*##$//g' /etc/nginx/conf.d/default.conf
fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment