Skip to content
Snippets Groups Projects
Select Git revision
  • 10c86adddc89948ee4456e69245aee204525169b
  • master default
  • host01
  • ns4
  • kodi
5 results

www.shore.co.il.conf

Blame
    • nimrod's avatar
      10c86add
      Cleanup. · 10c86add
      nimrod authored
      - No more proxying in www.shore.co.il. I think about redoing it all with
        a subdomain per service. Also no more secrets, intead authenticate
        against the LDAP server or something.
      - CI templates.
      - Simpler self-signed SSL certificate generation.
      - Set the hostname in CI.
      - Use the www-redirect snippet in shore.co.il.
      10c86add
      History
      Cleanup.
      nimrod authored
      - No more proxying in www.shore.co.il. I think about redoing it all with
        a subdomain per service. Also no more secrets, intead authenticate
        against the LDAP server or something.
      - CI templates.
      - Simpler self-signed SSL certificate generation.
      - Set the hostname in CI.
      - Use the www-redirect snippet in shore.co.il.
    www.shore.co.il.conf 1.70 KiB
    server {
        listen              80;
        listen              [::]:80;
        server_name         www.shore.co.il;
        include             snippets/robots-allow-all.conf;
        include             snippets/ads-txt.conf;
        include             snippets/security-txt.conf;
        location = /        { return 301 https://$host/blog/; }
        location /repo/     {
            root            /var/www/www.shore.co.il/;
            autoindex       on;
        }
        location /          { return 301 https://$host$request_uri; }
    }
    
    server {
        listen                  443 ssl;
        listen                  [::]:443 ssl;
        server_name             www.shore.co.il;
        include                 snippets/robots-allow-all.conf;
        include                 snippets/ads-txt.conf;
        include                 snippets/security-txt.conf;
        include                 snippets/ssl.conf;
        root                    /var/www/www.shore.co.il/;
        error_page 404          /;
    
        location /repo/         { autoindex on; }
        location = /resume      { try_files $uri /resume/resume.html; }
        location = /resume/     { index resume.html; }
    
        location = /            { return 301 https://$host/blog/; }
        location /about         { return 301 https://$host/blog/pages/about-me.html; }
        location /spam          { return 301 https://$host/blog/pages/spam.html; }
        location = /blog        {
            try_files $uri /blog/index.html;
            charset UTF-8;
        }
    
        location /cgit          { return 301 https://git.shore.co.il/explore; }
        location /cgit/         { return 301 https://git.shore.co.il/explore; }
        location /git           { return 301 https://git.shore.co.il/explore; }
        location /git/          { return 301 https://git.shore.co.il/explore; }
    }