This commit is contained in:
Mr Chen
2024-10-01 15:57:26 +08:00
parent f71973b10a
commit 3fe638d16c
2 changed files with 6 additions and 19 deletions
+3 -18
View File
@@ -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;
+3 -1
View File
@@ -263,7 +263,9 @@ def stop():
def restart():
return pgOp('restart')
state = pgOp('restart')
mw.restartWeb()
return state
def reload():