Browse Source

Updated nginx config to surround regex with quotes

pull/172/head
Michael Olund 5 years ago
parent
commit
7ff4aa1a58
3 changed files with 7 additions and 19 deletions
  1. +5
    -5
      README.md
  2. +1
    -13
      docker-compose.yml
  3. +1
    -1
      openshift/templates/nginx-proxy/conf.d/server.conf

+ 5
- 5
README.md View File

@ -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.


+ 1
- 13
docker-compose.yml View File

@ -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:

+ 1
- 1
openshift/templates/nginx-proxy/conf.d/server.conf View File

@ -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;
}


Loading…
Cancel
Save