fix docker openresty port

This commit is contained in:
xiaomlove
2025-04-29 01:24:13 +07:00
parent 7ed607c981
commit 404357945e
4 changed files with 6 additions and 3 deletions
+3
View File
@@ -42,6 +42,9 @@ echo_info "NP_DOMAIN: $NP_DOMAIN"
# 检查证书是否存在 # 检查证书是否存在
if [ -f "$CERT_DIR/$FULLCHAIN" ] && [ -f "$CERT_DIR/$PRIVATE_KEY" ]; then if [ -f "$CERT_DIR/$FULLCHAIN" ] && [ -f "$CERT_DIR/$PRIVATE_KEY" ]; then
echo_info "ssl certs already exists at: ${CERT_DIR}" echo_info "ssl certs already exists at: ${CERT_DIR}"
chmod 644 "$CERT_DIR/$FULLCHAIN"
chmod 644 "$CERT_DIR/$PRIVATE_KEY"
ls -l "$CERT_DIR"
else else
echo_info "no ssl certs at: ${CERT_DIR}" echo_info "no ssl certs at: ${CERT_DIR}"
USE_HTTPS="0" USE_HTTPS="0"
+1 -1
View File
@@ -7,7 +7,7 @@ server {
index index.php index.html; index index.php index.html;
ssl_certificate /certs/fullchain.pem; ssl_certificate /certs/fullchain.pem;
ssl_certificate_key /certs/private.pem; ssl_certificate_key /certs/private.key;
location = /favicon.ico { location = /favicon.ico {
log_not_found off; log_not_found off;
@@ -4,7 +4,7 @@ server {
server_name ${PHPMYADMIN_SERVER_NAME}; server_name ${PHPMYADMIN_SERVER_NAME};
ssl_certificate /certs/fullchain.pem; ssl_certificate /certs/fullchain.pem;
ssl_certificate_key /certs/private.pem; ssl_certificate_key /certs/private.key;
location / { location / {
proxy_pass http://phpmyadmin:80; proxy_pass http://phpmyadmin:80;
+1 -1
View File
@@ -73,7 +73,7 @@ services:
- phpmyadmin - phpmyadmin
command: ["/bin/sh", "/usr/local/bin/entrypoint.sh"] command: ["/bin/sh", "/usr/local/bin/entrypoint.sh"]
ports: ports:
- "${NP_PORT:-80}:80" - "${NP_PORT:-80}:${NP_PORT:-80}"
logging: logging:
driver: "json-file" driver: "json-file"
options: options: