Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Host option not working behind cloudflare reverse proxy #15

Closed
karmarcharger opened this issue Sep 14, 2022 · 2 comments
Closed

Host option not working behind cloudflare reverse proxy #15

karmarcharger opened this issue Sep 14, 2022 · 2 comments
Labels
enhancement New feature or request low priority Low priority

Comments

@karmarcharger
Copy link

karmarcharger commented Sep 14, 2022

When i manually setted the docker compose behind cloudflare's proxy,
environment:
PICSUR_HOST: mydomain.com
PICSUR_PORT: 443

[Nest] 35 - 09/14/2022, 4:46:39 PM ERROR [NestApplication] Error: listen EADDRNOTAVAIL: address not available 172.67.171.53:443

Error: listen EADDRNOTAVAIL: address not available 172.67.171.53:443

at Server.setupListenHandle [as _listen2] (node:net:1468:21)

at listenInCluster (node:net:1533:12)

at GetAddrInfoReqWrap.doListen [as callback] (node:net:1682:7)

at GetAddrInfoReqWrap.onlookup [as oncomplete] (node:dns:113:8) {

code: 'EADDRNOTAVAIL',

errno: -99,

syscall: 'listen',

address: '172.67.171.53',

port: 443

I am trying to set it manually because i want it to use the domain for the copying of the image sharing URL even when i am accessing it via local IP.

(I have 2FA on my domain but not my local IP so its more convenient to login via local IP)

@CaramelFur
Copy link
Owner

This setting only configures the binding of the server, and not the actual url you receive when generating a copyable link.
The copyable link is generated on the client side, and thus just looks at your browsers location to generate the link relative to that.
Right now there is no option to override this, so you'll either have to access the service via its external domain. Or edit the image links.

Maybe I'll add an option to override this tho, but I'll have to see how complicated it is to do that.

@CaramelFur CaramelFur added enhancement New feature or request low priority Low priority labels Sep 14, 2022
@CaramelFur
Copy link
Owner

It was doable, the next release will include an option to override the hostname in the copyable links.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request low priority Low priority
Projects
None yet
Development

No branches or pull requests

2 participants