nginx-locations.conf 768 Bytes
Newer Older
1 2 3 4
location / {
  root /home/ludo/src/guix-hpc-web/site;
}

5
# For the package browsing interface.
6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
location @gnupackages {
  return 307 https://www.gnu.org/software/guix/packages/;
}
location /browse {
  proxy_pass http://localhost:5000;
  proxy_connect_timeout 3s;
  proxy_read_timeout 2s;
  error_page 500 502 503 504 = @gnupackages;
}
location /package {
  proxy_pass http://localhost:5000;
  proxy_connect_timeout 3s;
  proxy_read_timeout 2s;
  error_page 500 502 503 504 = @gnupackages;
}
21

22 23 24 25
# For use by Certbot.
location /.well-known {
   root /var/www;
}
26 27 28

# Redirects for old URLs.
location = /guix-hpc-debut.html {
29
   return 301 /blog/2017/09/guix-hpc-debut;
30
}
31 32 33
location = /about.html {
   return 301 /about;
}
34 35 36
location = /feed.xml {
   return 301 /blog/feed.xml;
}