summaryrefslogtreecommitdiff
path: root/conf/nginx.conf
diff options
context:
space:
mode:
Diffstat (limited to 'conf/nginx.conf')
-rw-r--r--conf/nginx.conf28
1 files changed, 28 insertions, 0 deletions
diff --git a/conf/nginx.conf b/conf/nginx.conf
new file mode 100644
index 0000000..12725f1
--- /dev/null
+++ b/conf/nginx.conf
@@ -0,0 +1,28 @@
+worker_processes 4;
+
+events {
+ worker_connections 1024;
+}
+
+http {
+ include mime.types;
+ sendfile on;
+
+ server {
+ listen 80;
+ root /var/www/html;
+
+ location /public {
+ add_header Cache-Control "public, max-age=31536000, immutable";
+ try_files $uri =404;
+ }
+
+ location / {
+ add_header Content-Security-Policy "base-uri 'none'";
+ include fastcgi_params;
+ fastcgi_pass php:9000;
+ fastcgi_param SCRIPT_FILENAME $document_root/index.php;
+ }
+ }
+}
+