server { listen 80; listen [::]:80; server_name secure.*; location / { proxy_redirect http://127.0.0.1/ https://$host/; proxy_pass http://oathkeeper:4455; } }