diff --git a/AGENTS.md b/AGENTS.md index 0c5845d..37a965e 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -82,7 +82,7 @@ changelogs: ### LinuxServer.io Conventions - **PUID/PGID:** Support for user mapping is handled by the base image; ensure any new files in `root/` are compatible with the `abc` user. -- **S6 Overlay:** Use S6 service files for process management if adding new background services. Ensure `run` scripts are executable (`chmod +x`). In this project, an `nginx` service is used to serve local content. +- **S6 Overlay:** Use S6 service files for process management if adding new background services. Ensure `run` scripts are executable (`chmod +x`). In this project, the base image's `nginx` service is leveraged to serve local content via `root/etc/nginx/conf.d/fusion.conf`. ## 6. Error Handling and Logging - **Redirection:** In Shell scripts, redirect stderr to stdout or `/dev/null` as appropriate: `"$@" > /dev/null 2>&1`. diff --git a/root/etc/nginx/conf.d/default.conf b/root/etc/nginx/conf.d/fusion.conf similarity index 78% rename from root/etc/nginx/conf.d/default.conf rename to root/etc/nginx/conf.d/fusion.conf index ddd9fab..ec69115 100644 --- a/root/etc/nginx/conf.d/default.conf +++ b/root/etc/nginx/conf.d/fusion.conf @@ -1,5 +1,5 @@ server { - listen 8081 default_server; + listen 8081; root /var/www/fusion-v1; index index.html; location / { diff --git a/root/etc/services.d/nginx/run b/root/etc/services.d/nginx/run deleted file mode 100755 index 7351fd0..0000000 --- a/root/etc/services.d/nginx/run +++ /dev/null @@ -1,2 +0,0 @@ -#!/usr/bin/with-contenv bash -exec nginx -g "daemon off;"