ocarina Posted Thursday at 06:16 PM Posted Thursday at 06:16 PM 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. Quote
MoneyBroz Posted Thursday at 06:27 PM Posted Thursday at 06:27 PM i think you would need a VPS for this, but I'll escalate this thread so a root admin can comment on this further. Quote
Krydos Posted Thursday at 06:54 PM Posted Thursday at 06:54 PM 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? Quote
ocarina Posted yesterday at 02:04 PM Author Posted yesterday at 02:04 PM 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. Quote
wolstech Posted yesterday at 04:21 PM Posted yesterday at 04:21 PM 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. Quote
ocarina Posted yesterday at 04:29 PM Author Posted yesterday at 04:29 PM Quote You'd need to be on Morty to avoid that Could Tommy work instead? Quote
wolstech Posted yesterday at 04:32 PM Posted yesterday at 04:32 PM Has the same limits as Johnny, so no. Quote
ocarina Posted yesterday at 04:42 PM Author Posted yesterday at 04:42 PM I just upgraded to it. Thank you for the help. Quote
wolstech Posted yesterday at 05:02 PM Posted yesterday at 05:02 PM 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. Quote
ocarina Posted yesterday at 05:05 PM Author Posted yesterday at 05:05 PM Thank you very much. Though, would it not be possible to have a route to start the process and then another to stop the process? I'm not sure how it would work. Quote
Krydos Posted 23 hours ago Posted 23 hours ago You should be able to start and stop your process using something like this https://wiki.helionet.org/Discord_Bot#Starting_and_Stopping_Your_Bot Quote
ocarina Posted 20 hours ago Author Posted 20 hours ago 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" Quote
KazVee Posted 20 hours ago Posted 20 hours ago Have you tried clearing your browser cache? I just checked your site now and it loads for me: . Quote
ocarina Posted 20 hours ago Author Posted 20 hours ago I think it's my antivirus. I even cleared my cache just to be sure. Thanks 1 Quote
wolstech Posted 19 hours ago Posted 19 hours ago It may be. Our servers sometimes have to be whitelisted. Malwarebytes is like that for example. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.