• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

Feature Separate web script for use with own webservers

Status
Not open for further replies.

stop

Insider
Insider
I would like to see the web script separated from the bot so that we can use it with our own nginx/apache2 servers. I think that wold be a nice feature. Though for those who do not have a web server, or do not know how to or care to set one up, just allow them to use a built in / included one instead.


My 2 cents.
 
You can already do that, search for 'reverse proxy'. xD

EDIT:
If you use nginx put this in your server block:
Code:
location / {
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_pass http://127.0.0.1:8087;
    }

or if you use apache2 put this in your VirtualHost:
Code:
<Location />
        ProxyPass http://127.0.0.1:8087/
        ProxyPassReverse http://127.0.0.1:8087/
        Order allow,deny
        Allow from all
    </Location>
 
Last edited:
You can already do that, search for 'reverse proxy'. xD

EDIT:
If you use nginx put this in your server block:
Code:
location / {
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_pass http://127.0.0.1:8087;
    }

or if you use apache2 put this in your VirtualHost:
Code:
<Location />
        ProxyPass http://127.0.0.1:8087/
        ProxyPassReverse http://127.0.0.1:8087/
        Order allow,deny
        Allow from all
    </Location>

Not quite what I meant. What I mean is to host the files under your own web server rather than proxy it over to another.
 
You can build the Webinterface by yourself if you want to the API Documentation is right here: https://www.sinusbot.com/api/
You need a integrated WebServer anyway to communitcate with the bot so in my Opinion there is no need to seperate it

Why exactly would you require such a feature? It does not make things faster, the Proxy is the Solution I use to get rid of the Port and the Integrated GO Webserver is overpowered enough to handle all the requests
 
Status
Not open for further replies.
Back
Top Bottom