Browse Source

Fixed enginx example

tags/0.6.8
tastytea 4 months ago
parent
commit
ca0650a4cd
Signed by: tastytea <tastytea@tastytea.de> GPG Key ID: CFC39497F1B26E07
1 changed files with 7 additions and 0 deletions
  1. 7
    0
      doc/nginx-example.conf

+ 7
- 0
doc/nginx-example.conf View File

@@ -32,9 +32,16 @@ server {
32 32
     # access_log /var/log/nginx/avatar main;
33 33
     error_log /var/log/nginx/avatar warn;
34 34
 
35
+    expires 86400;
36
+    add_header Cache-Control "public, max-age=86400" always;
37
+
35 38
     location / {
36 39
         include /etc/nginx/fastcgi_params;
37 40
         fastcgi_pass    unix:/var/run/cgi-fcgiwrap.socket-1;
38 41
         fastcgi_param SCRIPT_FILENAME /usr/bin/libravatarserv;
42
+
43
+        # fastcgi_param LIBRAVATARSERV_DEFAULT_FALLBACK 404;
44
+        # fastcgi_param LIBRAVATARSERV_REDIRECT_NOFALLBACK 0;
45
+        # fastcgi_param LIBRAVATARSERV_REDIRECT_NOUSER 0;
39 46
     }
40 47
 }

Loading…
Cancel
Save