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