Skip to content

Commit

Permalink
Fix webui nginx config
Browse files Browse the repository at this point in the history
  • Loading branch information
g3kk0 committed Jul 31, 2018
1 parent f016bfb commit dd7a62a
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 10 deletions.
22 changes: 14 additions & 8 deletions config/nginx/ernest.licensed
Expand Up @@ -24,17 +24,23 @@ server {
ssl_certificate /etc/nginx/conf.d/ernest.crt;
ssl_certificate_key /etc/nginx/conf.d/ernest.key;

location / {
proxy_pass http://webui/;
location / {
proxy_pass http://webui;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}

location /api/ {
proxy_pass http://proxy/;
proxy_set_header Host $host;
}

location /api {
proxy_pass http://proxy;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}

location /auth {
proxy_pass http://proxy;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-For $remote_addr;
}
}

location /events {
proxy_pass http://backendmonitor;
Expand Down
2 changes: 1 addition & 1 deletion definition.yml
Expand Up @@ -349,5 +349,5 @@ repos:
ports:
- 4200:4200
volumes:
- ./config/webui/app.globals.ts:/app/src/app/app.globals.ts
- ./config/webui/app.globals.ts:/repo/src/app/app.globals.ts
restart: always
2 changes: 1 addition & 1 deletion setup
Expand Up @@ -92,7 +92,7 @@ done

# license check
if [[ -f license.json ]]; then
printf "%s\n%s" "License found" "Validating... "
printf "\n%s\n%s" "License found" "Validating... "

wget https://s3-eu-west-1.amazonaws.com/ernest-tools/ernest-verifier-`uname` -O ernest-verifier &> /dev/null
chmod +x ernest-verifier
Expand Down

0 comments on commit dd7a62a

Please sign in to comment.