-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathnginx.conf
More file actions
executable file
·44 lines (34 loc) · 1.06 KB
/
nginx.conf
File metadata and controls
executable file
·44 lines (34 loc) · 1.06 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
pid /tmp/nginx.pid;
worker_processes auto;
events {
worker_connections 1024;
}
http {
include /etc/nginx/mime.types;
default_type application/octet-stream;
# Temp-Verzeichnisse nach /tmp – beschreibbar fuer User 1000:1000
client_body_temp_path /tmp/nginx_client_temp;
proxy_temp_path /tmp/nginx_proxy_temp;
fastcgi_temp_path /tmp/nginx_fastcgi_temp;
uwsgi_temp_path /tmp/nginx_uwsgi_temp;
scgi_temp_path /tmp/nginx_scgi_temp;
sendfile on;
keepalive_timeout 65;
gzip on;
gzip_types text/css application/javascript application/json;
server {
listen 80;
server_name _;
root /usr/share/nginx/html;
index index.html;
# Kein Caching fuer JSON-Dateien – neue Scans sofort sichtbar
location ~* \.json$ {
add_header Cache-Control "no-store, no-cache, must-revalidate";
add_header Pragma "no-cache";
expires -1;
}
location / {
try_files $uri $uri/ =404;
}
}
}