alexander171294 / RustMon

Rust game admin tool for servers (RustMonitor)
Apache License 2.0
20 stars 3 forks source link

Can you make a tutorial for newbies how to run this with everything? #43

Open Bazimek opened 1 year ago

Bazimek commented 1 year ago

Like the countries to display .. the map etc .. I really do not find out how to run this properly. I just can do the ng build and copy the dist folder to my webserver.

2hug commented 11 months ago

+1

alexander171294 commented 2 months ago

In order to make work the map and other details, you need to start the user-data-srv but for that you need a VPS or something like that, In the past, I hosted a public version of that but I stopped because it costs $.

First of all, you need to install docker in your server, and then you can build the docker image of user-data-srv, or copy directly the folder to your server.

If you decide to copy the folder you need to do this: first build the project inside the folder user-data-srv, is another project that runs with nodejs, you need to install nodejs in your server, and in the folder user-data-srv you need to put this commands:

first build the project once with this command:

npm run build

in your server you need to start an instance of redis (is like a data base)

docker run --name rustmonRedis -p 6379:6379 -d redis redis-server --requirepass 38674516

Then to run the backend you need to use this command:

and npm run start:prod

In this moment, you are running an instance of user-data-srv in your server, this app by default starts in the port 3000, so you need to point a domain or use the IP: :3000, example: 192.168.0.32:3000, and you need to put this on the file environments.prod.ts in the folder rustmon/src/environments/environment.prod.ts replacing this:

uDataApi: 'https://rustmon.tercerpiso.net',

for this:

uDataApi: 'http://192.168.0.32:3000',

Probably this doesn't work because doesn't have an SSL, but you can try.

If you need more help I will write another guide more complete.

GameAreaCZ commented 2 months ago

And what about the flags and information about VAC bans etc?

alexander171294 commented 2 months ago

All of that features are in user-data-service, vac and other information requires steam api, check the wiki after this last update I added a simply way to configure the frontend to connect that service, because the new feature of plugins update checker is in the service

GameAreaCZ commented 2 months ago

When I'm already using a redis on port 6379 so I did this:

docker run --name rustmonRedis -p 6380:6380 -d redis redis-server --requirepass 38674516

but where can I edit the IP:port to this redis server of yours in the application npm run start:prod in the folder user-data-srv?

When I go to MY LOCAL IP:3000 I see: obrazek

EDIT // trying to set a new redis server with : docker run --name rustmonRedis -p 6380:6380 -d redis redis-server --port 6380 redis server is working, your app in the console has: LOG [NestApplication] Nest application successfully started +1ms

but same issue like in the screenshot.

GameAreaCZ commented 2 months ago

Oh ... I think I figured it out!! obrazek

It looks so nice! Even the Steam information is working after update the API key. And the plugin manager with information about new versions is so nice!!! Thank you very much for it!

Best Rust Rcon tool out there for sure!

And there is even button for connect the backend service (the wi-fi icon).

That is so nice! What is everything going on in the backend service? And what for is the redis server?

Hackpig1974 commented 1 month ago

Would it be possible to request a updated set of install instructions? I was able to muddle through the npm, node.js, Angular, updating node.js to the support version for Angular. But when I went to try and install I got a no-workspace error. A lot of the people wanting to use this product are typical server admins, not developers that have experience with containers/docker. The product looks amazing, but I just couldn't get it installed. Just a suggestion. Thanks.

HunterZ commented 1 month ago

I'm a C++ developer rather than a web developer, so the install instructions are greek to me. Would it be possible to just publish a pre-built container somewhere that I can run up via Portainer or something?

Hackpig1974 commented 1 month ago

I found someone willing to help me from one of my Discord groups. I am working with them to try and create some instructions. I was able to get further and actually run the service, but even though it says I can then connect to localhost:4200 I cannot get a page to come up on that port. UFW is set to allow as well. I will keep working at it, but getting further each time.

jimmyx341 commented 1 month ago

https://hub.docker.com/r/alexander171294/rustmon https://hub.docker.com/r/alexander171294/rustmon-service

On Mon, Jun 17, 2024 at 4:38 AM Damon1974 @.***> wrote:

I found someone willing to help me from one of my Discord groups. I am working with them to try and create some instructions. I was able to get further and actually run the service, but even though it says I can then connect to localhost:4200 I cannot get a page to come up on that port. UFW is set to allow as well. I will keep working at it, but getting further each time.

— Reply to this email directly, view it on GitHub https://github.com/alexander171294/RustMon/issues/43#issuecomment-2171817819, or unsubscribe https://github.com/notifications/unsubscribe-auth/BB2ZBXTDE2EXXODFSOG4FALZHXPEBAVCNFSM6AAAAAASJBRJKCVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNZRHAYTOOBRHE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

alexander171294 commented 1 month ago

@HunterZ check the comment of jimmyx

@Hackpig1974 https://github.com/alexander171294/RustMon/wiki

If you are trying to run a productive version you can use npm run build and upload the dist folder to a simple apache server or use docker command to run the pre-built version.

Hackpig1974 commented 1 month ago

Jimmy worked with me to answer my 1,000 questions and I was super thankful. With his help I was able to get Rustmon installed, configured and working. Ultimately I went down the docker path. After getting it setup and going I decided to not use the rustmon_service container and just use the rustmon container. My server is low population and so the ability to lookup regions and leverage the API was not necessary in my use case. Yours may differ. I created this basic install document in hopes it helps others. Thanks for everyone's help.

Rustmon Installation Instructions -Docker.txt