mcsleepingserverstarter icon indicating copy to clipboard operation
mcsleepingserverstarter copied to clipboard

Be able to put web start on a subdirectory of the website

Open ruguysgoingtrickortreating opened this issue 3 years ago • 1 comments

Like the title says, lets say google decides to open a Minecraft server or something and they could put it on google.com/startminecraftserver instead of having to replace google.com, if there is already a way to do this please let me know

Currently there is not, because the API server and the web server is running inside MC SSS.

vincss avatar Jun 09 '22 07:06 vincss

I know it's been a while, but I think I have the answer, as long as this works how I think this works.

My server has been long dead, so I haven't had the chance to test the sleeping webserver with this, but while setting up Wetty, I noticed how broad the instructions to use it with Nginx were: https://github.com/butlerx/wetty/blob/main/docs/nginx.md

I'm pretty sure changing that localhost:3000 block of code to simply reflect the sleeping server's port and changing the location line at the top to not direct to /wetty but instead to /minecraftserver or something could show the web activate screen in a subdirectory. It seems to be a little more complex for Apache, though. Regardless, it's a good start.

Yes, you can do some redirections in nginx. If you succeed write it to a wiki page. ;-)

vincss avatar Feb 07 '23 09:02 vincss

Have created #154 which solves this

markmetcalfe avatar Mar 28 '23 08:03 markmetcalfe

@vincss this issue can be closed now

markmetcalfe avatar Mar 30 '23 21:03 markmetcalfe

Yes it can, thank you. Don't forget the wiki please. ;-)

vincss avatar Mar 31 '23 09:03 vincss

Yes it can, thank you. Don't forget the wiki please. ;-)

I've added a wiki page here 😃

markmetcalfe avatar Apr 01 '23 01:04 markmetcalfe