mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-30 00:47:22 +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
|
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"
|
||||||
|
|||||||
@@ -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
@@ -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:
|
||||||
|
|||||||
Reference in New Issue
Block a user