Skip to content

GiRx8/Palworld-Service

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

20 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Palworld-Service

Application for managing Palworld server via flask app. This has been tested to run on ubuntu server/ wsl. The application must be ran in the same enviorment as the Palworld server.

Basic login information is: user: admin pass: admin

change your password after login on!

systemd service dependant:

This app is depedant on setting up palworld with systemd services. see this page for instructions. You may skip to Step 25 if you understand what's being done.

https://pimylifeup.com/ubuntu-palworld-dedicated-server/

Installation

sudo mkdir -p /home/app
sudo curl -LJO https://github.com/GiRx8/Palworld-Service/archive/refs/tags/v0.1.2.tar.gz
sudo tar -xzf Palworld-Service-0.1.2.tar.gz -C /home/app --strip-components=1
cd /home/app
sudo chmod +x deploy.sh
./deploy.sh

After installation progress

Please update your ip in the following file

sudo nano /etc/nginx/sites-available/PalService
server {
    listen 80;
    server_name your_ip or domain_here;

    location / {
        proxy_pass http://localhost:5000;
        proxy_set_header Host $host;
        proxy_set_header X-Real-IP $remote_addr;
        proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
    }

    location /static {
        alias /home/app/pals/main/static;
    }

    location /media {
        alias /home/app/pals/main/media;
    }

    error_page 500 502 503 504 /50x.html;
    location = /50x.html {
        root /usr/share/nginx/html;
    }
}

Useful commands

sudo systemctl status nginx 
sudo systemctl status gunicorn
sudo systemctl stop nginx
sudo systemctl start nginx 
sudo systemctl stop gunicorn
sudo systemctl start gunicorn

Important information

In order for the application to start, stop, and restart the palworld services, the deployment script grants ubuntu steam user permission in the sudoer file to run them without password check (only 4 command permissions are being given to the steam user)

steam   ALL=(ALL) NOPASSWD: /bin/systemctl start palworld.service, /bin/systemctl stop palworld.service, /bin/systemctl restart palworld.service, /bin/systemctl is-active palworld.service

Images

alt text

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published