Why I’m getting too many redirects loop in this nginx config?

Here is my Nginx config: I want to redirect all visits to example.com to https://example.com server { listen 80; server_name example.com www.example.com; return 301 https://example.com$request_uri; } server { listen 443; server_name example.com ssl on; ssl_certificate /etc/letsencrypt/live/example.com/fullchain.pem; ssl_certificate_key /etc/letsencrypt/live/example.com/privkey.pem; location / { proxy_pass http://127.0.0.1:8888; proxy_set_header Host $host; proxy_set_header X-Real-Ip $remote_addr; proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; } location /static/screenshots…

Source policy-based routing to couple of sit tunnels. Works only first one

At Ubuntu Server 18.04 I want to have this behavior: curl -6 –interface 2001:470:e09f::3 ifconfig.co/ip 2001:470:e09f::3 curl -6 –interface 2001:470:c160::4 ifconfig.co/ip 2001:470:c160::4 But, unfortunately, only first prefix works. My startup script: #!/bin/sh sysctl -w net.ipv6.conf.default.forwarding=1 sysctl -w net.ipv6.conf.all.forwarding=1 sysctl -w net.ipv6.ip_nonlocal_bind=1 modprobe ipv6 ## tunnel_0 ip tunnel add he-ipv6-0 mode sit remote 216.66.22.2 local 154.16.126.60…