Various versioning fixes

This commit is contained in:
kexkey
2018-12-21 12:21:28 -05:00
parent f9e86fd116
commit 9ef48fea2c
14 changed files with 76 additions and 45 deletions

View File

@@ -5,13 +5,13 @@ So all the other containers are in the Docker Swarm and we want to expose a real
## Pull our Cyphernode image
```shell
docker pull cyphernode/gatekeeper:cyphernode-0.05
docker pull cyphernode/gatekeeper:latest
```
## Build yourself the image
```shell
docker build -t cyphernode/gatekeeper:cyphernode-0.05 .
docker build -t cyphernode/gatekeeper:latest .
```
## Run image
@@ -19,7 +19,7 @@ docker build -t cyphernode/gatekeeper:cyphernode-0.05 .
If you are using it independantly from the Docker stack (docker-compose.yml), you can run it like that:
```shell
docker run -d --rm --name gatekeeper -p 80:80 -p 443:443 --network cyphernodenet -v "~/cyphernode-ssl/certs:/etc/ssl/certs" -v "~/cyphernode-ssl/private:/etc/ssl/private" --env-file env.properties cyphernode/gatekeeper:cyphernode-0.05 `id -u cyphernode`:`id -g cyphernode`
docker run -d --rm --name gatekeeper -p 80:80 -p 443:443 --network cyphernodenet -v "~/cyphernode-ssl/certs:/etc/ssl/certs" -v "~/cyphernode-ssl/private:/etc/ssl/private" --env-file env.properties cyphernode/gatekeeper:latest `id -u cyphernode`:`id -g cyphernode`
```
## Prepare

View File

@@ -87,8 +87,8 @@ verify_group()
trace "[verify_group] Verifying group..."
local id=${1}
# REQUEST_URI should look like this: /watch/2blablabla
local action=$(echo "${REQUEST_URI#\/}" | cut -d '/' -f1)
# REQUEST_URI should look like this: /v0/watch/2blablabla
local action=$(echo "${REQUEST_URI#\/}" | cut -d '/' -f2)
trace "[verify_group] action=${action}"
# Check for code injection

View File

@@ -14,9 +14,9 @@ server {
index statuspage.html;
}
location / {
location /v0/ {
auth_request /auth;
proxy_pass http://proxy:8888;
proxy_pass http://proxy:8888/;
}
location /auth {

View File

@@ -4,9 +4,9 @@ server {
#include /etc/nginx/conf.d/ip-whitelist.conf;
location / {
location /v0/ {
auth_request /auth;
proxy_pass http://proxy:8888;
proxy_pass http://proxy:8888/;
}
location /auth {