server { server_name dotfiles.krd.sh; include snip.d/listen-https; include snip.d/ssl-krd.sh; access_log off; log_not_found off; root /var/www/dotfiles; index index.txt; try_files $uri $uri/ =404; include snip.d/http-security-headers; location ~* ^/(|index\.txt)$ { default_type text/plain; } location = /get { return 303 $scheme://$host/.config/dotfiles/install.sh; } location ~ ^/.+$ { return 303 https://git.krd.sh/krd/dotfiles/raw/branch/main$uri; } include snip.d/empty-favicon; include snip.d/robots-txt; }