I’m new to this. A friend and I have been trying to set up a MUD game we’re building. I’ve managed to get it installed in my Droplet, and I’ve purchased a custom domain for the game to be played from. My problem is in configuring my droplet in a way that it will a) run the app (evennia start from the project’s main directory) and b) allow for connection to the app through my custom domain. Any help at all would be greatly appreciated.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Heya @jaycb3,
First, you’ll need to configure Nginx and make it work as a reverse proxy.
Step 1: Install Nginx
If you haven’t already installed Nginx, you can do so using your system’s package manager. For most Linux distributions, the command is:
Step 2: Configure Nginx as a Reverse Proxy
/etc/nginx/sites-available/
directory (you can name the file after your domain for clarity, likedoomain.com.conf
):where
doomain.com
would be the real domain that you have purchased.Add the following configuration to the file. This configuration tells Nginx to listen on the default HTTP port (80) and proxy the requests to your application running on localhost, port 3000:
Since I do not know on which port your application runs, I’ve set it to 3000 however you can set it to any port you wish.
Replace
example.com
with your domain name or IP address.Symlink this file to the
/etc/nginx/sites-enabled/
directory to enable it:Step 3: Test and Restart Nginx
Step 4: Adjust Firewall Settings (If Applicable)
If you have a firewall running, such as
ufw
, you need to allow HTTP traffic:Step 5: Access Your Application
You should now be able to access your application via your server’s domain name or IP address (on port 80) in a web browser.