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

View File

@@ -42,6 +42,9 @@ echo_info "NP_DOMAIN: $NP_DOMAIN"
# 检查证书是否存在
if [ -f "$CERT_DIR/$FULLCHAIN" ] && [ -f "$CERT_DIR/$PRIVATE_KEY" ]; then
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
echo_info "no ssl certs at: ${CERT_DIR}"
USE_HTTPS="0"

View File

@@ -7,7 +7,7 @@ server {
index index.php index.html;
ssl_certificate /certs/fullchain.pem;
ssl_certificate_key /certs/private.pem;
ssl_certificate_key /certs/private.key;
location = /favicon.ico {
log_not_found off;

View File

@@ -4,7 +4,7 @@ server {
server_name ${PHPMYADMIN_SERVER_NAME};
ssl_certificate /certs/fullchain.pem;
ssl_certificate_key /certs/private.pem;
ssl_certificate_key /certs/private.key;
location / {
proxy_pass http://phpmyadmin:80;

View File

@@ -73,7 +73,7 @@ services:
- phpmyadmin
command: ["/bin/sh", "/usr/local/bin/entrypoint.sh"]
ports:
- "${NP_PORT:-80}:80"
- "${NP_PORT:-80}:${NP_PORT:-80}"
logging:
driver: "json-file"
options: