]> BookStack Code Mirror - devops/commitdiff
Create nginx
authorDan Brown <redacted>
Mon, 8 Aug 2016 19:44:01 +0000 (20:44 +0100)
committerGitHub <redacted>
Mon, 8 Aug 2016 19:44:01 +0000 (20:44 +0100)
config/nginx [new file with mode: 0644]

diff --git a/config/nginx b/config/nginx
new file mode 100644 (file)
index 0000000..8742340
--- /dev/null
@@ -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;
+  }
+}