aboutsummaryrefslogtreecommitdiffstats
path: root/terminaldweller.com/lokinet/nginx.conf
diff options
context:
space:
mode:
authorterminaldweller <devi@terminaldweller.com>2023-05-04 19:24:48 +0000
committerterminaldweller <devi@terminaldweller.com>2023-05-04 19:24:48 +0000
commit4b0ef68be03ebbe9da56520d62ce372f66a2a12f (patch)
treefc794093f386283021776ebde9ebea982ccdc617 /terminaldweller.com/lokinet/nginx.conf
parentupdates (diff)
downloadscripts-4b0ef68be03ebbe9da56520d62ce372f66a2a12f.tar.gz
scripts-4b0ef68be03ebbe9da56520d62ce372f66a2a12f.zip
update
Diffstat (limited to 'terminaldweller.com/lokinet/nginx.conf')
-rw-r--r--terminaldweller.com/lokinet/nginx.conf22
1 files changed, 22 insertions, 0 deletions
diff --git a/terminaldweller.com/lokinet/nginx.conf b/terminaldweller.com/lokinet/nginx.conf
new file mode 100644
index 0000000..c8e6ad9
--- /dev/null
+++ b/terminaldweller.com/lokinet/nginx.conf
@@ -0,0 +1,22 @@
+events {
+ worker_connections 1024;
+}
+http {
+ server {
+ listen 80;
+ keepalive_timeout 70;
+ add_header Content-Security-Policy "default-src 'self';";
+ add_header X-Frame-Options SAMEORIGIN always;
+ add_header X-Content-Type-Options "nosniff" always;
+ add_header X-XSS-Protection "1; mode=block" always;
+ add_header Referrer-Policy "no-referrer";
+ sendfile on;
+ tcp_nopush on;
+
+ location / {
+ root /srv/;
+ add_header Access-Control-Allow-Origin "*";
+ add_header Content-Disposition "inline";
+ }
+ }
+}