Skip to content

Commit c0eaadd

Browse files
author
Jeff Schroeder
committed
Update figment nginx config
Use a variable for the auth token to keep the config more readable.
1 parent 7cdb44e commit c0eaadd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

doc/nginx-configs/figment-virt-server-config.conf

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
server {
1313
listen 7901;
1414

15+
set $auth_token REPLACE_ME_WITH_YOUR_AUTH_TOKEN;
16+
1517
location / {
1618
try_files /nonexistent-used-for-try-testing @$http_upgrade;
1719
}
@@ -24,7 +26,7 @@ server {
2426
proxy_set_header Upgrade $http_upgrade;
2527
proxy_set_header Connection "Upgrade";
2628
# Figment specific authentication requirement
27-
proxy_set_header Authorization REPLACE_ME_WITH_YOUR_AUTH_TOKEN;
29+
proxy_set_header Authorization "$auth_token";
2830
proxy_redirect https://$proxy_host http://$server_name:$server_port;
2931
proxy_redirect https:// http://;
3032
}
@@ -35,7 +37,7 @@ server {
3537
proxy_set_header Host $proxy_host;
3638
proxy_set_header Connection "";
3739
# Figment specific authentication requirement
38-
proxy_set_header Authorization REPLACE_ME_WITH_YOUR_AUTH_TOKEN;
40+
proxy_set_header Authorization "$auth_token";
3941
proxy_redirect https://$proxy_host http://$server_name:$server_port;
4042
proxy_redirect https:// http://;
4143
}

0 commit comments

Comments
 (0)