Giter Site home page Giter Site logo

Comments (8)

lenovouser avatar lenovouser commented on July 20, 2024

This is actually possible:

NGINX:

server {
    listen 80;

    server_name bungeeweb.domain.tld;

    location / {
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
        proxy_set_header Host $http_host;
        proxy_set_header X-NginX-Proxy true;

        proxy_pass http://127.0.0.1:<BungeeWebPort>/;
        proxy_redirect off;
    }
}

With Apache2 it is a little more difficult, I am searching for an easy solution right now.

from bungeeweb.

Arzte avatar Arzte commented on July 20, 2024

@Dead-i I would like to see something like this, I think this would be kinda cool, plus you can always call on recon when you separate the webserver from the plugin.

from bungeeweb.

EthanWaite avatar EthanWaite commented on July 20, 2024

Thanks for the suggestion. :)

Allowing people to host the files could be a good option to achieve this, yes. However, my main concern with this is that, with the current setup, BungeeWeb's standalone webserver could never go away completely, even with the files separated.

This is because any query sends an Ajax HTTP request to the webserver. For example, when logs are retrieved or refreshed, it will send a request to 127.0.0.1:8080/api/getlogs. For searching a player, the plugin will send a request to 127.0.0.1:8080/api/getplayers. If we remove the webserver completely, there would be nothing to serve these requests.

Would still keeping the barebones of the webserver (the API) be a problem? Perhaps a good way to get around this would be to use web sockets...

from bungeeweb.

EthanWaite avatar EthanWaite commented on July 20, 2024

However, it is still possible to run BungeeWeb on a subdomain anyway with the current setup, provided you have an IP address spare. You could theoretically run BungeeWeb on port 80 on a spare IP address, and then point the subdomain of your choice to this IP address.

from bungeeweb.

Arzte avatar Arzte commented on July 20, 2024

be cool also if there was a way to get something like mything.bw.domainexstension if your going to add support for this.

from bungeeweb.

lenovouser avatar lenovouser commented on July 20, 2024

Well, I dont understand your problem here right now, BungeeWeb is running perfectly fine with this NGINX configuration, and why you would want to remove the internal webserver from BungeeWeb? This is just proxying the results from BungeeWeb to the subdomain.

from bungeeweb.

EthanWaite avatar EthanWaite commented on July 20, 2024

@Apfeluser I was more responding to @TheDoctorsLife's message than you, sorry, as he mentioned:

you can always call on recon when you separate the webserver from the plugin.

I've always intended for BungeeWeb to have an integrated webserver as it does now, as it really simplifies the installation process. However, I've had quite a few requests to separate the webserver, and I was curious what you all thought about this.

Practically though, it doesn't seem to make much sense to separate them, as you said.

Anyway, it's great that you've got a nginx configuration working, and I'll definitely be playing around with this later! =)

Thanks

from bungeeweb.

Arzte avatar Arzte commented on July 20, 2024

When I said that I wasn't meaning to get rid of the webserver but to offer the ability to do so.

from bungeeweb.

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.