2022-11-24 13:32:59 +01:00
|
|
|
upstream phpmyadmin_server {
|
|
|
|
# ip_hash;
|
|
|
|
server phpmyadmin:80;
|
|
|
|
# server phpmyadmin:80 weight=1 max_fails=3 fail_timeout=30s;
|
|
|
|
}
|
|
|
|
|
|
|
|
# PHPmyadmin
|
|
|
|
server {
|
|
|
|
listen 80;
|
|
|
|
listen [::]:80;
|
|
|
|
#listen 443;
|
|
|
|
#listen [::]:443;
|
|
|
|
|
|
|
|
server_name phpmyadmin.bensuperpc.org www.phpmyadmin.bensuperpc.org;
|
|
|
|
|
2023-04-16 23:43:40 +02:00
|
|
|
location / {
|
|
|
|
proxy_pass http://phpmyadmin_server;
|
|
|
|
proxy_redirect off;
|
|
|
|
proxy_set_header X-Forwarded-Host $http_host;
|
|
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
2022-11-24 13:32:59 +01:00
|
|
|
}
|
|
|
|
|
2023-04-16 23:43:40 +02:00
|
|
|
resolver 8.8.8.8;
|
2022-11-24 13:32:59 +01:00
|
|
|
}
|