mirror of
https://github.com/okxlin/appstore.git
synced 2025-07-13 21:02:18 +08:00
feat:优化palworld-server
This commit is contained in:
parent
ba661d2f04
commit
732af3c053
@ -1,19 +1,3 @@
|
||||
# 使用说明
|
||||
|
||||
## 数据文件夹授权
|
||||
|
||||
- 1、**必要操作:** 首次安装完成后,进入已安装应用界面,点击跳转数据目录,修改目录下的`data`文件夹为`1000`用户和用户组。
|
||||
|
||||
命令行修改则类似如下,路径按需修改:
|
||||
```
|
||||
chown -R 1000:1000 /opt/1panel/apps/local/palworld-server/palworld-server/data
|
||||
```
|
||||
|
||||
- 2、回到已安装应用界面,重建应用。
|
||||
|
||||
# 原始相关
|
||||
***
|
||||
|
||||
# palworld-docker
|
||||
|
||||
[](https://github.com/KagurazakaNyaa/palworld-docker/actions/workflows/update.yml)
|
||||
|
@ -1,7 +1,6 @@
|
||||
CONTAINER_NAME="palworld-server"
|
||||
PANEL_APP_PORT_HTTP="8211"
|
||||
PANEL_APP_PORT_RCON="25575"
|
||||
DATA_PATH="./data"
|
||||
MAX_PLAYERS="32"
|
||||
MULTITHREAD_SWITCH="true"
|
||||
PUBLIC_SWITCH="false"
|
||||
|
@ -16,13 +16,6 @@ additionalProperties:
|
||||
required: true
|
||||
rule: paramPort
|
||||
type: number
|
||||
- default: ./data
|
||||
edit: true
|
||||
envKey: DATA_PATH
|
||||
labelEn: Data folder path
|
||||
labelZh: 数据文件夹路径
|
||||
required: true
|
||||
type: text
|
||||
- default: 32
|
||||
edit: true
|
||||
envKey: MAX_PLAYERS
|
||||
|
0
apps/palworld-server/latest/data/.gitkeep
Normal file
0
apps/palworld-server/latest/data/.gitkeep
Normal file
@ -10,7 +10,7 @@ services:
|
||||
- ${PANEL_APP_PORT_RCON}:${PANEL_APP_PORT_RCON}/tcp
|
||||
volumes:
|
||||
- /etc/localtime:/etc/localtime:ro
|
||||
- ${DATA_PATH}:/opt/palworld/Pal/Saved
|
||||
- ./data:/opt/palworld/Pal/Saved
|
||||
environment:
|
||||
- GAME_PORT=${PANEL_APP_PORT_HTTP}
|
||||
- MAX_PLAYERS=${MAX_PLAYERS}
|
||||
|
3
apps/palworld-server/latest/scripts/init.sh
Normal file
3
apps/palworld-server/latest/scripts/init.sh
Normal file
@ -0,0 +1,3 @@
|
||||
#!/bin/bash
|
||||
|
||||
chown -R 1000:1000 data
|
Loading…
Reference in New Issue
Block a user