mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 12:30:49 +08:00
fix docker http2 config
This commit is contained in:
@@ -62,9 +62,11 @@ envsubst '$PHPMYADMIN_SERVER_NAME' < /etc/nginx/conf.d/sites/phpmyadmin.conf.tem
|
||||
if [ "$USE_HTTPS" = "0" ]; then
|
||||
echo_info "remove https related configuration ..."
|
||||
sed -i '/ssl_certificate/d' "$APP_CONF"
|
||||
sed -i '/http2/d' "$APP_CONF"
|
||||
sed -i 's/listen.*/listen 80;/g' "$APP_CONF"
|
||||
|
||||
sed -i '/ssl_certificate/d' "$PMA_CONF"
|
||||
sed -i '/http2/d' "$PMA_CONF"
|
||||
sed -i 's/listen.*/listen 80;/g' "$PMA_CONF"
|
||||
fi
|
||||
|
||||
|
||||
@@ -1,12 +1,13 @@
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen 443 ssl;
|
||||
http2 on;
|
||||
server_name ${NP_DOMAIN};
|
||||
|
||||
root /var/www/html/public;
|
||||
index index.php index.html;
|
||||
|
||||
ssl_certificate /certs/fullchain.pem;
|
||||
ssl_certificate_key /certs/privkey.pem;
|
||||
ssl_certificate_key /certs/private.pem;
|
||||
|
||||
location = /favicon.ico {
|
||||
log_not_found off;
|
||||
|
||||
@@ -1,9 +1,10 @@
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
listen 443 ssl;
|
||||
http2 on;
|
||||
server_name ${PHPMYADMIN_SERVER_NAME};
|
||||
|
||||
ssl_certificate /certs/fullchain.pem;
|
||||
ssl_certificate_key /certs/privkey.pem;
|
||||
ssl_certificate_key /certs/private.pem;
|
||||
|
||||
location / {
|
||||
proxy_pass http://phpmyadmin:80;
|
||||
|
||||
Reference in New Issue
Block a user