summaryrefslogtreecommitdiffhomepage
path: root/nginx/certs_default.conf
diff options
context:
space:
mode:
author_Tradam <[email protected]>2025-09-17 18:07:07 +0900
committer_Tradam <[email protected]>2025-09-17 18:07:07 +0900
commit3e4baad1b4b27ad4abb2be19f69ed1551bc3e4fc (patch)
treee9ae3cab3be5ce674a947dabaff59fa5c8d5ea5e /nginx/certs_default.conf
parenta206493f3b3460e21353cea5477eebbcc10c0301 (diff)
downloadwordpress-docker-3e4baad1b4b27ad4abb2be19f69ed1551bc3e4fc.tar.gz
wordpress-docker-3e4baad1b4b27ad4abb2be19f69ed1551bc3e4fc.zip
change to not depend on https by default
Diffstat (limited to 'nginx/certs_default.conf')
-rwxr-xr-xnginx/certs_default.conf40
1 files changed, 40 insertions, 0 deletions
diff --git a/nginx/certs_default.conf b/nginx/certs_default.conf
new file mode 100755
index 0000000..1904b28
--- /dev/null
+++ b/nginx/certs_default.conf
@@ -0,0 +1,40 @@
+upstream php {
+ server php:9000;
+}
+
+server {
+ listen 80;
+ server_name 100.75.105.112;
+ root /var/www/html;
+ index index.php index.html;
+
+ location / {
+ try_files $uri $uri/ /index.php?$args;
+ }
+
+ location ~ \.php$ {
+ include fastcgi.conf;
+ fastcgi_intercept_errors on;
+ fastcgi_pass php;
+ }
+}
+
+server {
+ listen 443 ssl;
+ server_name ${NGINX_SERVER_NAME};
+ root /var/www/html;
+ index index.php index.html;
+
+ location / {
+ try_files $uri $uri/ /index.php?$args;
+ }
+
+ location ~ \.php$ {
+ include fastcgi.conf;
+ fastcgi_intercept_errors on;
+ fastcgi_pass php;
+ }
+
+ ssl_certificate /etc/nginx/certs/self-signed/cert.pem;
+ ssl_certificate_key /etc/nginx/certs/self-signed/cert-key.pem;
+}