mirror of
https://github.com/midoks/mdserver-web.git
synced 2026-10-10 05:59:25 +08:00
update
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -263,7 +263,9 @@ def stop():
|
||||
|
||||
|
||||
def restart():
|
||||
return pgOp('restart')
|
||||
state = pgOp('restart')
|
||||
mw.restartWeb()
|
||||
return state
|
||||
|
||||
|
||||
def reload():
|
||||
|
||||
Reference in New Issue
Block a user