-
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactor NGINX configuration and HA authentication (#97)
* Refactor NGINX configuration and HA authentication * Remove Lua packages
- Loading branch information
Showing
13 changed files
with
57 additions
and
159 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
Without requirements or design, programming is the art of adding bugs to an empty text file. (Louis Srygley) |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
server { | ||
{{ if not .ssl }} | ||
listen {{ .port }} default_server; | ||
{{ else }} | ||
listen {{ .port }} default_server ssl http2; | ||
{{ end }} | ||
|
||
include /etc/nginx/includes/server_params.conf; | ||
include /etc/nginx/includes/proxy_params.conf; | ||
|
||
{{ if .ssl }} | ||
include /etc/nginx/includes/ssl_params.conf; | ||
|
||
ssl_certificate /ssl/{{ .certfile }}; | ||
ssl_certificate_key /ssl/{{ .keyfile }}; | ||
{{ end }} | ||
|
||
{{ if not .leave_front_door_open }} | ||
location = /authentication { | ||
internal; | ||
proxy_pass http://supervisor/auth; | ||
proxy_pass_request_body off; | ||
proxy_set_header Content-Length ""; | ||
proxy_set_header X-Supervisor-Token "{{ env "SUPERVISOR_TOKEN" }}"; | ||
} | ||
{{ end }} | ||
|
||
location / { | ||
{{ if not .leave_front_door_open }} | ||
auth_request /authentication; | ||
auth_request_set $auth_status $upstream_status; | ||
{{ end }} | ||
|
||
proxy_pass http://backend; | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
...ces/rootfs/etc/nginx/servers/ingress.conf → ...s/rootfs/etc/nginx/templates/ingress.gtpl
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters