54 lines
1.6 KiB
Plaintext
54 lines
1.6 KiB
Plaintext
server {
|
|
listen 80;
|
|
listen [::]:80;
|
|
|
|
server_name ${DOCKER_PHPMYADMIN_SERVER_NAME};
|
|
# server_name phpmyadmin-oneskyit.localhost phpmyadmin.oneskyit.com dev-phpmyadmin.oneskyit.com test-phpmyadmin.oneskyit.com;
|
|
|
|
access_log /logs/nginx/access_oneskyit_phpmyadmin.log;
|
|
|
|
index index.php;
|
|
|
|
location / {
|
|
proxy_pass http://phpmyadmin:80;
|
|
proxy_pass_header Content-Type;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade; # allow websockets
|
|
proxy_pass_header Connection;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_set_header Host $host;
|
|
}
|
|
}
|
|
|
|
|
|
server {
|
|
listen 443 ssl;
|
|
listen [::]:443 ssl;
|
|
http2 on;
|
|
|
|
# server_name ${DOCKER_PHPMYADMIN_SERVER_NAME};
|
|
server_name phpmyadmin-oneskyit.localhost phpmyadmin.oneskyit.com dev-phpmyadmin.oneskyit.com test-phpmyadmin.oneskyit.com;
|
|
|
|
access_log /logs/nginx/access_oneskyit_phpmyadmin.log;
|
|
|
|
include /etc/nginx/options-ssl-nginx.conf;
|
|
|
|
ssl_certificate /etc/certs/fullchain.pem;
|
|
ssl_certificate_key /etc/certs/privkey.pem;
|
|
ssl_dhparam /etc/certs/ssl-dhparams.pem;
|
|
|
|
index index.php;
|
|
|
|
location / {
|
|
proxy_pass http://phpmyadmin:80;
|
|
proxy_pass_header Content-Type;
|
|
proxy_http_version 1.1;
|
|
proxy_set_header Upgrade $http_upgrade; # allow websockets
|
|
proxy_pass_header Connection;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $remote_addr;
|
|
proxy_set_header Host $host;
|
|
}
|
|
}
|