mirror of
https://github.com/aljazceru/cyphernode.git
synced 2025-12-18 13:14:56 +01:00
Various versioning fixes
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user