mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-03 14:10:57 +08:00
fix docker openresty port
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user