-
Notifications
You must be signed in to change notification settings - Fork 57
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
feat: flag to force advertisement of wss #1500
Comments
I don't agree that it should be just about forcing ie, something like
nwaku can then feel the It should be possible to repeat the argument so that it could also have:
To solve a case where nwaku is ran in local lan that does not support uPNP / there is a custom router setup. Also, this is relevant for the usage of nwaku in DappNode as DappNode handles SSL+DyDNS for the user. Cc @mfw78 |
Thanks for this issue and, yes, as @mfw78 has pointed out, there is already a duplicate issue for this. :) |
I don't think I understand this part - I can already specify domain name, and in doing so I believe I'm telling nwaku to advertise that, and hence do not want to have to specify it again in I will close when I better understand the advantage of |
Ah right. I'll leave it to the dev to decide how to handle this the best. I was suggested to have one argument to handle them all but this may not make sense. |
I think the design may not be a feature purely for |
Note, parallel discussion on which types of addresses should/should not be added to |
This issue is addressed in #1512 |
Problem
We use nginx to handle ssl and certs and proxy wss to nwaku ws. This works and is fine until nwaku advertises itself with ws address rather than wss. Makes sense as it does not know it is being proxied to wss. But it breaks things after a while.
Suggested solution
Add flag to force nwaku to advertise itself with wss rather than ws maddr.
Alternatives considered
Could completely reconfigure docker stack to renew certbot certs and put them where nwaku can reach them but I'd rather not.
Additional context
Nginx is very very good at reverse proxy and there are many reasons to include it in a stack. Allowing something else to handle ssl and letting nwaku know it is being handled is a good idea.
Acceptance criteria
Flag set to true makes nwaku advertise itself with wss maddr rather than ws
If websockets aren't enabled at all it should error on start "cannot force wss if websockets aren't enabled" or similar
If native secure websockets are enabled, error on start "secure websockets are already enabled. Do not use this flag."
The flag does not effect the dns/ip address portion being advertised; just switch ws for wss.
The text was updated successfully, but these errors were encountered: