Leverage base image nginx service instead of creating a new one

This commit is contained in:
Joakim Svensson
2026-01-06 20:20:24 +00:00
parent f72580e7eb
commit ff4c2bd6bc
3 changed files with 2 additions and 4 deletions

View File

@@ -82,7 +82,7 @@ changelogs:
### LinuxServer.io Conventions ### 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. - **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 ## 6. Error Handling and Logging
- **Redirection:** In Shell scripts, redirect stderr to stdout or `/dev/null` as appropriate: `"$@" > /dev/null 2>&1`. - **Redirection:** In Shell scripts, redirect stderr to stdout or `/dev/null` as appropriate: `"$@" > /dev/null 2>&1`.

View File

@@ -1,5 +1,5 @@
server { server {
listen 8081 default_server; listen 8081;
root /var/www/fusion-v1; root /var/www/fusion-v1;
index index.html; index index.html;
location / { location / {

View File

@@ -1,2 +0,0 @@
#!/usr/bin/with-contenv bash
exec nginx -g "daemon off;"