diff --git a/README.md b/README.md index 81233626..54bf00b0 100644 --- a/README.md +++ b/README.md @@ -46,11 +46,11 @@ To run this project in your development machine, follow these steps: 9. Log in to the Keycloak administration console on http://127.0.0.1:8081 as user=admin/password=admin. Under Manage Users, create yourself a test account. Username, Email, First Name and Last Name fields are needed. Don't forget to set a password on the 'Credentials' tab. 10. Build the vue uploader -``` -cd vue -npm install -npm run build -``` + ``` + cd vue + npm install + npm run build + ``` 11. Open your browser and go to http://127.0.0.1:8000, you will be greeted with the eDivorce homepage. You can log in with the account you created in step 9. diff --git a/docker-compose.yml b/docker-compose.yml index 22c1b403..e10e19f3 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -21,19 +21,6 @@ services: - data-redis:/data restart: always - # Redis Commander - redis-commander: - container_name: edivorce-redis-commander - hostname: redis-commander - image: rediscommander/redis-commander:latest - restart: always - environment: - - REDIS_PORT=6379 - - REDIS_HOST=redis - - REDIS_PASSWORD=admin - ports: - - "8082:8081" - # Weasyprint (PDF generator) weasyprint: container_name: edivorce-weasyprint @@ -57,6 +44,7 @@ services: ports: - 8081:8080 command: ["-Dkeycloak.profile.feature.upload_scripts=enabled"] + restart: always volumes: data-redis: diff --git a/openshift/templates/nginx-proxy/conf.d/server.conf b/openshift/templates/nginx-proxy/conf.d/server.conf index e5b2ff69..188f11ed 100644 --- a/openshift/templates/nginx-proxy/conf.d/server.conf +++ b/openshift/templates/nginx-proxy/conf.d/server.conf @@ -31,7 +31,7 @@ server { # block all external access to the anonymous Redis image handler used for image to PDF conversion in Weasyprint # e.g. /divorce/api/documents/a8eeb280-f063-47d4-ab01-919319d61866_smtp_png/0/ - location ~* ^/divorce\/api\/documents\/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}_\w+\/\d+\/$ { + location ~* "^/divorce\/api\/documents\/[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}_\w+\/\d+" { return 403; }