hynky HF staff commited on
Commit
b7eaf25
·
1 Parent(s): c93c143
Files changed (1) hide show
  1. nginx.conf +1 -33
nginx.conf CHANGED
@@ -12,31 +12,10 @@ http {
12
  default_type application/octet-stream;
13
 
14
  access_log /tmp/access.log;
15
- error_log /tmp/error.log warn;
16
 
17
  sendfile on;
18
- tcp_nopush on;
19
- tcp_nodelay on;
20
  keepalive_timeout 65;
21
- types_hash_max_size 2048;
22
- server_tokens off;
23
-
24
- # Gzip Settings
25
- gzip on;
26
- gzip_vary on;
27
- gzip_proxied any;
28
- gzip_comp_level 6;
29
- gzip_types text/plain text/css application/json application/javascript text/xml application/xml application/xml+rss text/javascript;
30
-
31
- # Security headers
32
- add_header X-Frame-Options "SAMEORIGIN" always;
33
- add_header X-XSS-Protection "1; mode=block" always;
34
- add_header X-Content-Type-Options "nosniff" always;
35
- add_header Referrer-Policy "no-referrer-when-downgrade" always;
36
- add_header Content-Security-Policy "default-src 'self' http: https: data: blob: 'unsafe-inline'" always;
37
-
38
- # Rate limiting zone
39
- limit_req_zone $binary_remote_addr zone=one:10m rate=1r/s;
40
 
41
  server {
42
  listen 8080;
@@ -45,19 +24,8 @@ http {
45
  root /usr/share/nginx/html;
46
  index index.html;
47
 
48
- # Caching static assets
49
- location ~* \.(jpg|jpeg|png|gif|ico|css|js)$ {
50
- expires 30d;
51
- add_header Cache-Control "public, no-transform";
52
- }
53
-
54
  location / {
55
  try_files $uri $uri/ /index.html;
56
  }
57
-
58
- # Disallow access to .htaccess files
59
- location ~ /\.ht {
60
- deny all;
61
- }
62
  }
63
  }
 
12
  default_type application/octet-stream;
13
 
14
  access_log /tmp/access.log;
15
+ error_log /tmp/error.log;
16
 
17
  sendfile on;
 
 
18
  keepalive_timeout 65;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
19
 
20
  server {
21
  listen 8080;
 
24
  root /usr/share/nginx/html;
25
  index index.html;
26
 
 
 
 
 
 
 
27
  location / {
28
  try_files $uri $uri/ /index.html;
29
  }
 
 
 
 
 
30
  }
31
  }