Jump to content

[Solved] Request for nginx proxy for UDP socket


Recommended Posts

Posted

Hello. I would like help from a root admin on setting up an nginx proxy for a UDP socket listening on port 7777. My username is ocarina, my domain name is ocarina.helioho.st, I don't know how to check my server name, my socket application is for a multiplayer game server. I believe I can use the stream module in nginx.

 

Posted

There is no process listening on port 7777. Have you not started the process? Have you tried using .htaccess to proxy to port 7777? How do you plan to start and stop the process which isn't currently listening on port 7777? How much memory does your process use when it's running?

Posted

I am unsure how to start the process since it is an executable. The executable is located in /SCP\ Secret\ Laboratory\ Dedicated\ Server/LocalAdmin. The only option that I know it takes is a port number which will be 7777. When initially launching it, it uses quite a bit of CPU and RAM. However, they will go down (CPU to ~1% usage and RAM to ~1%-1.5% usage) soon after the server starts. I have observed this on a machine with an Intel i5 and 8 GB of RAM. Do I put .htaccess anywhere in httpdocs? I am unsure how to use .htaccess to proxy to port 7777 because the socket is not a websocket. The server runs and when connected to, the game (client) is sent to a waiting room until more players join via the IP. I don't know what I would put in .htaccess but if you give me guidance that would be great. 

Posted
Quote

 I have observed this on a machine with an Intel i5 and 8 GB of RAM.

This may actually be too heavy for Johnny. If those numbers are right, 1-1.5% of 8GB RAM is 82-123MB, which is too high for a Johnny account (you'll get a load suspension for memory usage if an app uses more than ~70MB continuously). You'd need to be on Morty to avoid that, where you'll be charged fees for excessive memory use instead.

Posted

No problem. Doesn't make a lot of sense to get it all set up on Johnny only to end up suspended because the process you want to run used too much memory.

As for starting the process, there are ways to do that through things such as python. Take a look at our wiki pages for things like a discord bot. Those involve continuously running processes in the background, and include examples of how to design scripts to start and stop. The biggest risk of a continuously running process is if you don't have a way to kill the process or command it to exit...you run into an issue where it gets stuck running and wasting resources.
 

Krydos should be able to help you with the nginx proxy and answer questions better than I can about starting/stopping the process.

Posted

When my storage was full (The log file was 400 MB) my website crashed. Plesk says that the site is active but when I try to go to ocarina.helioho.st chrome says "The connection was reset"

Posted

Have you tried clearing your browser cache? I just checked your site now and it loads for me: 
 

.image.png.6addd2072f6c56442ec4b04d844cb234.png

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...