From: Dan Brown Date: Mon, 8 Aug 2016 19:44:01 +0000 (+0100) Subject: Create nginx X-Git-Url: http://source.bookstackapp.com/devops/commitdiff_plain/0d28933280fcb75f24ade4cd07e0d55c677af8c2 Create nginx --- diff --git a/config/nginx b/config/nginx new file mode 100644 index 0000000..8742340 --- /dev/null +++ b/config/nginx @@ -0,0 +1,18 @@ +server { + listen 80; + listen [::]:80; + + server_name bookstack.dev; + + root /var/www/bookstack/public; + index index.php index.html; + + location / { + try_files $uri $uri/ /index.php?$query_string; + } + + location ~ \.php$ { + include snippets/fastcgi-php.conf; + fastcgi_pass unix:/run/php/php7.0-fpm.sock; + } +}