Skip to content
Permalink
Browse files

add sample nginx configuration

  • Loading branch information...
devnewton committed Aug 27, 2017
1 parent 1b7e800 commit 94f45b0211615a799298823ad6c63b37de48e18f
Showing with 36 additions and 0 deletions.
  1. +36 −0 docs/nginx.conf
@@ -0,0 +1,36 @@
server {
listen 80;
listen [::]:80;
location '/.well-known/acme-challenge/' {
default_type "text/plain";
root /srv/letsencrypt/taab;
}
location / {
return 301 https://$server_name$request_uri;
}
server_name taab.bci.im;
}

server {
listen 443 ssl;
listen [::]:443 ssl;
server_name taab.bci.im;
charset utf-8;
root /srv/taab;
index index.php;
location ^~ /data {
deny all;
}
location ~ \.php$ {
try_files $uri =404;
fastcgi_pass unix:/run/php/php7.0-fpm.sock;
fastcgi_index index.php;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
include fastcgi_params;
}
ssl_certificate /etc/letsencrypt/live/taab.bci.im/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/taab.bci.im/privkey.pem;
ssl_prefer_server_ciphers on;
client_max_body_size 100m;
client_body_timeout 600s;
}

0 comments on commit 94f45b0

Please sign in to comment.
You can’t perform that action at this time.