This commit is contained in:
Ubuntu
2025-07-08 00:43:38 +00:00
parent 4aed7a1cbb
commit 9f320c72ab
5 changed files with 25 additions and 7 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ FROM debian:12.5-slim
RUN apt-get update && apt-get install -y nginx openssl && rm -rf /var/lib/apt/lists/*
RUN mkdir /etc/ssl/certs /etc/ssl/private
RUN mkdir -p /etc/ssl/certs /etc/ssl/private
COPY tools/mkcert.sh /tmp/mkcert.sh
RUN chmod +x /tmp/mkcert.sh && /tmp/mkcert.sh
+9 -5
View File
@@ -9,10 +9,14 @@ server {
ssl_ciphers HIGH:!aNULL:!MD5;
location / {
proxy_pass http://wordpress:9000;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
root /var/www/html;
index index.php index.html;
location ~ \.php$ {
include fastcgi_params;
fastcgi_pass wordpress:9000;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
}