Add a special header for authlib-injector for / path

This commit is contained in:
ErickSkrauch
2021-03-03 16:22:35 +01:00
parent 4856695940
commit 163bbe68a2
3 changed files with 36 additions and 2 deletions

View File

@@ -35,6 +35,10 @@ server {
}
location / {
if ($request_uri = '/') {
more_set_headers "X-Authlib-Injector-API-Location: /api/authlib-injector";
}
root $frontend_path;
access_log off;
etag on;

View File

@@ -1,3 +1,5 @@
load_module /usr/lib/nginx/modules/ngx_http_headers_more_filter_module.so;
user nginx;
worker_processes auto;