From c5a29b5845d360dc1a65c964e16f7a9c6cafece5 Mon Sep 17 00:00:00 2001 From: dnomd343 Date: Thu, 11 Aug 2022 13:56:10 +0800 Subject: [PATCH] update: nginx configure --- nginx/kms.conf | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/nginx/kms.conf b/nginx/kms.conf index ce16214..7558a2d 100644 --- a/nginx/kms.conf +++ b/nginx/kms.conf @@ -1,7 +1,15 @@ server { listen 1689; listen [::]:1689 ipv6only=on; - root /kms-server; + set $kms_dir '/kms-server'; + + location /assets { + root $kms_dir; + } + + location = /json { + alias $kms_dir/assets/kms-keys.json; + } location / { set $query_param $query_string; @@ -11,8 +19,6 @@ server { include fastcgi_params; fastcgi_pass 127.0.0.1:9000; fastcgi_param QUERY_STRING $query_param; - fastcgi_param SCRIPT_FILENAME /kms-server/src/Route.php; + fastcgi_param SCRIPT_FILENAME $kms_dir/src/Route.php; } - - location /assets {} }