Fight4Ever

u/Fight4Ever


Something I was able to do with plain old Nginx, was have the web interface for Phantombot, a bot for Twitch and Discord, accessible from a subdomain. My old .conf looked like:

upstream phantombot {
    server MyVPSIP:25000; # set this to the IP:Baseport of the bot
}

server {
    listen 80;
    listen [::]:80;
    server_name subdomain.mysite.tld; # Server name is the domain or sub-domain
    return 301 https://$server_name;
}

server {
    listen              443 ssl http2;
    server_name         subdomain.mysite.tld; # Server name is the domain or sub-domain
    large_client_header_buffers 4 32k; # Very important to prevent une
10