libravatarserv is a simple libravatar server.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

48 lines
1.4KB

  1. server {
  2. listen 443 ssl;
  3. listen [::]:443 ssl;
  4. server_name avatar.example.com;
  5. # access_log /var/log/nginx/avatar main;
  6. error_log /var/log/nginx/avatar warn;
  7. ssl_certificate /var/lib/dehydrated/certs/avatar.example.com/fullchain.pem;
  8. ssl_certificate_key /var/lib/dehydrated/certs/avatar.example.com/privkey.pem;
  9. # 86400 seconds = 1 day
  10. expires 86400;
  11. add_header Cache-Control "public, max-age=86400" always;
  12. location / {
  13. include /etc/nginx/fastcgi_params;
  14. fastcgi_pass unix:/var/run/cgi-fcgiwrap.socket-1;
  15. fastcgi_param SCRIPT_FILENAME /usr/bin/libravatarserv;
  16. # fastcgi_param LIBRAVATARSERV_DEFAULT_FALLBACK 404;
  17. # fastcgi_param LIBRAVATARSERV_REDIRECT_NOFALLBACK 0;
  18. # fastcgi_param LIBRAVATARSERV_REDIRECT_NOUSER 0;
  19. }
  20. }
  21. server {
  22. listen 80;
  23. listen [::]:80;
  24. server_name avatar.example.com;
  25. # access_log /var/log/nginx/avatar main;
  26. error_log /var/log/nginx/avatar warn;
  27. expires 86400;
  28. add_header Cache-Control "public, max-age=86400" always;
  29. location / {
  30. include /etc/nginx/fastcgi_params;
  31. fastcgi_pass unix:/var/run/cgi-fcgiwrap.socket-1;
  32. fastcgi_param SCRIPT_FILENAME /usr/bin/libravatarserv;
  33. # fastcgi_param LIBRAVATARSERV_DEFAULT_FALLBACK 404;
  34. # fastcgi_param LIBRAVATARSERV_REDIRECT_NOFALLBACK 0;
  35. # fastcgi_param LIBRAVATARSERV_REDIRECT_NOUSER 0;
  36. }
  37. }