Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
midoks committed Oct 1, 2024
1 parent f71973b commit 3fe638d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 19 deletions.
21 changes: 3 additions & 18 deletions plugins/pgadmin/conf/pgadmin.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
4 changes: 3 additions & 1 deletion plugins/pgadmin/index.py
Original file line number Diff line number Diff line change
Expand Up @@ -263,7 +263,9 @@ def stop():


def restart():
return pgOp('restart')
state = pgOp('restart')
mw.restartWeb()
return state


def reload():
Expand Down

0 comments on commit 3fe638d

Please sign in to comment.