Skip to content

Commit

Permalink
Add upstream configuration for docs service in Nginx template
Browse files Browse the repository at this point in the history
  • Loading branch information
simlarsen committed Sep 18, 2024
1 parent 3ea955b commit 02f4ae8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion Nginx/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ upstream workflow {
server ${SERVER_WORKFLOW_HOSTNAME}:${WORKFLOW_PORT} weight=10 max_fails=3 fail_timeout=30s;
}

upstream docs {
server ${SERVER_DOCS_HOSTNAME}:${DOCS_PORT} weight=10 max_fails=3 fail_timeout=30s;
}

upstream home {
server ${SERVER_HOME_HOSTNAME}:${HOME_PORT} weight=10 max_fails=3 fail_timeout=30s;
}
Expand Down Expand Up @@ -683,7 +687,7 @@ server {
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection "upgrade";
proxy_pass http://app/docs;
proxy_pass http://docs;
}

location /file {
Expand Down

0 comments on commit 02f4ae8

Please sign in to comment.