You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think fixing this would be a lot of work, so we should specifically exclude it from the scope of auto proxy in the readme for both code-server and swag, IMO.
The text was updated successfully, but these errors were encountered:
That var overrides the server_name directive in the proxy conf. If the directive is set to a regex in the proxy conf, but the user sets it to 5000.code-server.mydomain.com, they are bypassing the regex, but it's not a bug because the mod is doing exactly what the user told it to do.
The var can accept regex values (as well as multiple server names), however, so the user can set it to code-server.blah.com "~^[0-9]{1,10}\.code-server\.blah.com"
ref: https://discord.com/channels/354974912613449730/1156192693655961630
https://github.com/linuxserver/docker-mods/blob/swag-auto-proxy/root/app/auto-proxy.sh#L70C21-L70C21
the lines above will take something like 5000.code-server.mydomain.com and rewrite it to code-server.mydomain.com which breaks code-server functionality.
I think fixing this would be a lot of work, so we should specifically exclude it from the scope of auto proxy in the readme for both code-server and swag, IMO.
The text was updated successfully, but these errors were encountered: