[MISC] Fix dev workflow for Standalone suite (#811)

Since the TLS change was implemented, the Standalone suite attempts to reach authelia-frontend:3001. This only works for the dist/CI based workflow as nginx is run in place of node and the respective ports are exposed.
This change will attempt authelia-frontend:3001 initially for the Standalone suite but given the server is unreachable in the dev workflow, it will mark authelia-frontend:3001 as unavailable for 180s and route all requests to authelia-frontend:3000 instead.
pull/831/head
Amir Zarrinkafsh 2020-04-06 10:15:05 +10:00 committed by GitHub
parent 670eeb2879
commit b692aa73d3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 1 deletions

View File

@ -8,12 +8,17 @@ events {
} }
http { http {
upstream authelia-frontend {
server authelia-frontend:3001 fail_timeout=180s;
server authelia-frontend:3000 backup;
}
server { server {
listen 8080 ssl; listen 8080 ssl;
server_name login.example.com; server_name login.example.com;
resolver 127.0.0.11 ipv6=off; resolver 127.0.0.11 ipv6=off;
set $frontend_endpoint http://authelia-frontend:3001; set $frontend_endpoint http://authelia-frontend;
set $backend_endpoint https://authelia-backend:9091; set $backend_endpoint https://authelia-backend:9091;
ssl_certificate /etc/ssl/server.cert; ssl_certificate /etc/ssl/server.cert;