From 3fe638d16cb69e8221ef68f5f9b8d7477b7aa347 Mon Sep 17 00:00:00 2001 From: Mr Chen Date: Tue, 1 Oct 2024 15:57:26 +0800 Subject: [PATCH] update --- plugins/pgadmin/conf/pgadmin.conf | 21 +++------------------ plugins/pgadmin/index.py | 4 +++- 2 files changed, 6 insertions(+), 19 deletions(-) diff --git a/plugins/pgadmin/conf/pgadmin.conf b/plugins/pgadmin/conf/pgadmin.conf index e08552df6..248181540 100755 --- a/plugins/pgadmin/conf/pgadmin.conf +++ b/plugins/pgadmin/conf/pgadmin.conf @@ -12,24 +12,9 @@ server auth_basic_user_file {$SERVER_PATH}/pgadmin/pma.pass; #AUTH_END - location ~ .*\.(gif|jpg|jpeg|png|bmp|swf)$ - { - expires 30d; - } - - location ~ .*\.(js|css)?$ - { - expires 12h; - } - - location ~ /.*\.(log|pass|json|pl)$ { - deny all; - } - - - location ~ /\. - { - deny all; + location / { + include proxy_params; + proxy_pass http://unix:/tmp/pgadmin4.sock; } access_log {$SERVER_PATH}/pgadmin/access.log; diff --git a/plugins/pgadmin/index.py b/plugins/pgadmin/index.py index 205d6097b..2dd01deb5 100755 --- a/plugins/pgadmin/index.py +++ b/plugins/pgadmin/index.py @@ -263,7 +263,9 @@ def stop(): def restart(): - return pgOp('restart') + state = pgOp('restart') + mw.restartWeb() + return state def reload():