From 633e354c089c6b3d0e8b16a03dc1ec183b71c422 Mon Sep 17 00:00:00 2001 From: dimon Date: Sun, 10 Apr 2022 05:25:12 +0000 Subject: [PATCH] =?UTF-8?q?=D0=A1=D0=BE=D0=B7=D0=B4=D0=B0=D0=BB(=D0=B0)=20?= =?UTF-8?q?'nginx-ssl.conf'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- nginx-ssl.conf | 45 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 nginx-ssl.conf diff --git a/nginx-ssl.conf b/nginx-ssl.conf new file mode 100644 index 0000000..b66117e --- /dev/null +++ b/nginx-ssl.conf @@ -0,0 +1,45 @@ +upstream php { + server unix:/var/run/php-fpm.sock; + server 127.0.0.1:9000; +} + +server { + listen 443 ssl default_server; + + root /opt/bitnami/wordpress; + index index.php index.html; + server_name _; + + ssl_certificate /letsencrypt/fullchain.pem; + ssl_certificate_key /letsencrypt/privkey.pem; + + client_max_body_size 8M; + + location / { + try_files $uri $uri/ /index.php$is_args$args; + } + + location ~ \.php$ { + include fastcgi.conf; + include fastcgi_params; + #fastcgi_pass php; + fastcgi_pass 127.0.0.1:9000; + fastcgi_index index.php; + } + +location = /favicon.ico { + log_not_found off; + access_log off; + } + + location = /robots.txt { + allow all; + log_not_found off; + access_log off; + } + +location ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { + expires max; + log_not_found off; + } +} \ No newline at end of file