Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
Ian's Personal Short Link Bookmark Service
# From
map $request_uri $statico_link {
include /home/ian/links.conf;
server {
listen 443 http2;
listen [::]:443 http2;
root /var/www/html;
ssl on;
ssl_certificate /etc/letsencrypt/live/;
ssl_certificate_key /etc/letsencrypt/live/;
include /etc/nginx/cipherlist;
include /etc/nginx/letsencrypt;
add_header Referrer-Policy unsafe-url;
add_header X-Robots-Tag "noindex, nofollow";
if ($statico_link) {
return 302 $statico_link;
location / { return 302; }
location /all-links.txt {
alias /home/ian/links.conf;
add_header Content-Type text/plain;
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.