distro-tracker 779 B

123456789101112131415161718192021222324252627282930
  1. server {
  2. listen 80;
  3. listen [::]:80 ipv6only=on;
  4. listen 443 ssl;
  5. listen [::]:443 ssl ipv6only=on;
  6. # Replace distro-tracker by the correct FQDN here
  7. server_name distro-tracker;
  8. # Replace this SSL certificate by your own one
  9. ssl_certificate /etc/ssl/certs/ssl-cert-snakeoil.pem;
  10. ssl_certificate_key /etc/ssl/private/ssl-cert-snakeoil.key;
  11. access_log /var/log/nginx/distro-tracker-access.log;
  12. error_log /var/log/nginx/distro-tracker-error.log error;
  13. location / {
  14. proxy_set_header Host $http_host;
  15. proxy_pass http://unix:/var/lib/distro-tracker/gunicorn.sock;
  16. }
  17. location /static/ {
  18. alias /var/lib/distro-tracker/static/;
  19. }
  20. location /media/ {
  21. alias /var/lib/distro-tracker/media/;
  22. }
  23. }