<p></p>
<h2 dir="auto">Further context to understand the use case</h2>
<ul dir="auto">
<li>I am developing an application that uses OSM OAuth for login.</li>
<li>During development I manage my services in containers.</li>
<li>There is an Nginx reverse proxy that sits in front and proxies services to domains like:</li>
</ul>
<pre class="notranslate"><code class="notranslate">app.localhost --> frontend
backend.app.localhost --> backend
s3.app.localhost --> minio
service3.app.localhost --> service3
</code></pre>
<ul dir="auto">
<li>I need to be able to set the redirect URL in the OpenStreetMap settings to <code class="notranslate">http://app.localhost/oauth</code>, which loops back to 127.0.0.1.</li>
</ul>
<h2 dir="auto">Current workaround</h2>
<ul dir="auto">
<li>I get around this by binding the port for the app to my host machine localhost, e.g. <code class="notranslate">-p 7050:7050</code>.</li>
<li>I then set the redirect URL to <a href="http://127.0.0.1:7050" rel="nofollow">http://127.0.0.1:7050</a>.</li>
<li>The service is accessible via <a href="http://app.localhost" rel="nofollow">http://app.localhost</a>, but the login redirects to <a href="http://127.0.0.1" rel="nofollow">http://127.0.0.1</a> and it still works.</li>
</ul>
<h2 dir="auto">Steps forward</h2>
<p dir="auto">By the sounds of it there is no interest in proceeding with this PR.</p>
<p dir="auto">If the extra context has helped clarify why this is useful, then I will happily update the PR to include redirect urls that end in <code class="notranslate">.localhost</code>.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />Reply to this email directly, <a href="https://github.com/openstreetmap/openstreetmap-website/pull/4287#issuecomment-1777127844">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAK2OLLJTPVNZLXW2Y4EYFDYA6ZLFAVCNFSM6AAAAAA55LRREWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONZXGEZDOOBUGQ">unsubscribe</a>.<br />You are receiving this because you are subscribed to this thread.<img src="https://github.com/notifications/beacon/AAK2OLKCXWQEU2WY5FUYCEDYA6ZLFA5CNFSM6AAAAAA55LRREWWGG33NNVSW45C7OR4XAZNMJFZXG5LFINXW23LFNZ2KUY3PNVWWK3TUL5UWJTTJ5TI2I.gif" height="1" width="1" alt="" /><span style="color: transparent; font-size: 0; display: none; visibility: hidden; overflow: hidden; opacity: 0; width: 0; height: 0; max-width: 0; max-height: 0; mso-hide: all">Message ID: <span><openstreetmap/openstreetmap-website/pull/4287/c1777127844</span><span>@</span><span>github</span><span>.</span><span>com></span></span></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/openstreetmap/openstreetmap-website/pull/4287#issuecomment-1777127844",
"url": "https://github.com/openstreetmap/openstreetmap-website/pull/4287#issuecomment-1777127844",
"name": "View Pull Request"
},
"description": "View this Pull Request on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>