From 9ab5d1f554d3df63a8812af69b2de92f4459efcf Mon Sep 17 00:00:00 2001 From: Nathan Young Date: Sun, 27 Sep 2026 17:20:45 -0600 Subject: [PATCH] Got gameyfin .env file working again --- gameyfin/.env | 4 ++-- gameyfin/docker-compose.yml | 10 +++++----- neoforge/cm | 11 ++++++++++- 3 files changed, 17 insertions(+), 8 deletions(-) diff --git a/gameyfin/.env b/gameyfin/.env index 3d3dc63..7629ac6 100644 --- a/gameyfin/.env +++ b/gameyfin/.env @@ -1,9 +1,9 @@ # Generate a new APP_KEY using the command "openssl rand -base64 32" or similar. -APP_KEY=3WkfZ7Tqxs4jgbxitYStGFsQOpQJ9xMVcuZVG/7ILak= +APP_KEY= # (optional) Set the URL of your Gameyfin instance if you are using a reverse proxy. # Currently, this is only used for generating links in notification emails and the log line at first run. -APP_URL=https://gameyfin.happylizard.me +APP_URL=https://gameyfin.change.me PUID=1000 # Change this to your user ID if needed PGID=1000 # Change this to your group ID if needed diff --git a/gameyfin/docker-compose.yml b/gameyfin/docker-compose.yml index de95633..fced6c1 100644 --- a/gameyfin/docker-compose.yml +++ b/gameyfin/docker-compose.yml @@ -6,11 +6,11 @@ services: env_file: .env volumes: - - ${GAMEYFIN_DATA_DIR:-gameyfin}/db:/opt/gameyfin/db - - ${GAMEYFIN_DATA_DIR:-gameyfin}/data:/opt/gameyfin/data - - ${GAMEYFIN_DATA_DIR:-gameyfin}/plugindata:/opt/gameyfin/plugindata - - ${GAMEYFIN_DATA_DIR:-gameyfin}/logs:/opt/gameyfin/logs - - ${GAMEYFIN_MEDIA_DIR:-games}:/opt/gameyfin/games + - ${GAMEYFIN_DATA_DIR:-./gameyfin}/db:/opt/gameyfin/db + - ${GAMEYFIN_DATA_DIR:-./gameyfin}/data:/opt/gameyfin/data + - ${GAMEYFIN_DATA_DIR:-./gameyfin}/plugindata:/opt/gameyfin/plugindata + - ${GAMEYFIN_DATA_DIR:-./gameyfin}/logs:/opt/gameyfin/logs + - ${GAMEYFIN_MEDIA_DIR:-./games}:/opt/gameyfin/games ports: - ${PORT}:8080 # If you plan to use the included torrent plugin, uncomment the following lines: diff --git a/neoforge/cm b/neoforge/cm index 92493fd..a88f33b 100755 --- a/neoforge/cm +++ b/neoforge/cm @@ -4,10 +4,19 @@ # # Example usage: # ./cm give pizza2d1 minecraft:oak_log 1 +# +# Troubleshooting: +# If the command shows an error that you are denied permission to the docker socket, you need to add your user to the docker group: +# +# sudo usermod -aG docker $USER +# +# And then you will need to log out in order for it to take effect: +# - For desktop environments you need to actually log out +# - If you are running this through SSH on a remote device you just need to close the terminal and reconnect command=() while [[ ! -z "${1}" ]]; do command+=("${1}") shift done -sudo docker exec -i neoforge_server rcon-cli "${command[@]}" +docker exec -i neoforge_server rcon-cli "${command[@]}"