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

Allow configuration of the bind address #68

Open
cyyynthia opened this issue Feb 25, 2024 · 1 comment
Open

Allow configuration of the bind address #68

cyyynthia opened this issue Feb 25, 2024 · 1 comment

Comments

@cyyynthia
Copy link

Describe the Suggestion

For my server I use a nginx proxy for all user-facing websites (including for example dynmap) and I'd like to also put the track map behind it. The rationale is that it a) allows me to access it via a clean URL without ports b) allows me to serve it via https c) reduces attack surface by having nginx sit in front of the internet (you never know when something gets a vulnerability!) d) allows me to set ratelimit rules, easier threat protection via fail2ban/crowdsec/....

Screenshots and Videos

No response

Additional Context

No response

@centmeteenvin
Copy link

I have a kind of way of setting up nginx to pass to the train maps but it is kind of ugly.

    location /train {
        # alias;
        proxy_pass http://localhost:3876/;
    }

    location /api {
        proxy_pass http://localhost:3876/$uri;
    }

    location /assets {
        proxy_pass http://localhost:3876/$uri;
    }

I am not the biggest fan of this solution as it consumes 3 location url's on the hostname. The reason I did this is, is because the scripts will call hostname/api and hostname/assets. If this can be fixed it would be nicer.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants