GithubHelp home page GithubHelp logo

Bind to IP address about server HOT 7 CLOSED

flocke avatar flocke commented on May 12, 2024 3
Bind to IP address

from server.

Comments (7)

 avatar commented on May 12, 2024

Maybe use Caddy ? alot easier.

from server.

flocke avatar flocke commented on May 12, 2024

@gedw99 That won't fix this, it would just be switching the reverse proxy, gotify would still be listening on the HTTP port accessible from any IP.

from server.

geeseven avatar geeseven commented on May 12, 2024

I took at a look at this one, as it was tagged 'good first issue'. Although in my case it would be 'good first go issue'.

The current functionality is the gotify server listens on '::' which all IPv4 and IPv6 addresses, see here for http. It appears that '::' is the only way for go's net listen feature to allow multiple IPs to be bound to a port. There does not appear to be a way to allow both 127.0.0.1 and [::1], except with '::'.

Is sacrificing dualstack or multiple IP support an acceptable trade off? Previously, I had to deal with IPv4 only clients and IPv6 only clients and not dealing with IPv4->IPv6 or IPv6->IPv4 was preferred. That may not be the case with this application.

from server.

flocke avatar flocke commented on May 12, 2024

@geeseven In my case that would be totally fine since I only need 127.0.0.1 as endpoint for my nginx proxy.

It may even be enough to only use a unix socket so that only local clients (nginx) can connect but I'm not sure that is as easy as just binding to an IP address. But I'm not sure that is even possible...

from server.

webracer999 avatar webracer999 commented on May 12, 2024

I've the same issue. I would like to put gotify behind a reverse proxy (apache).
My VPS has a firewall, but despite it would be better, if I can bind gotify to ::1 or 127.0.0.1

from server.

wiebel avatar wiebel commented on May 12, 2024

This Feature is quite essential. Dropping dual stack is a non issue, as configuration behind a reverse proxy will fix it on one stack anyway, at least in amost cases..

from server.

pm-pm avatar pm-pm commented on May 12, 2024

The reverse proxy issue is almost solved. :-) Thanks.
It would be nice to bind the Server to IP "127.0.0.1" or "localhost". I do not see the binding to another IP as necessary.

from server.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.