Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Community Chart App Request: nginx #1101

Open
Spunky17 opened this issue Dec 3, 2024 · 2 comments
Open

Community Chart App Request: nginx #1101

Spunky17 opened this issue Dec 3, 2024 · 2 comments

Comments

@Spunky17
Copy link

Spunky17 commented Dec 3, 2024

Nginx is a simple webserver with php support. Not to be confused with Nginx Proxy Manager (NPM) which is already available.

https://github.com/nginx/nginx

@stavros-k
Copy link
Contributor

How do you imagine this being used?
ie, what options should be available?

I think the nginx config is very use-case specific.

@Spunky17
Copy link
Author

Spunky17 commented Dec 3, 2024

Excellent questions.

Right now I'm using it to deploy websites behind NPM with the config options below. I have NPM configured to proxy my site URLs to the sites below using the URLs to map to the different ports noted below.

services:
  nginx:
    container_name: nginx
    deploy:
      resources:
        limits:
          cpus: '2'
          memory: 4096M
    environment:
      - PUID=568
      - PGID=568
      - TZ=Etc/UTC
    image: lscr.io/linuxserver/nginx:latest
    labels:
      - diun.enable=true
    ports:
      - 8080:8080 <site 1>
      - 8081:8081 <site 2>
      - 8082:8082 <site 3>
    restart: unless-stopped
    volumes:
      - <local directory to config>:/config
      - <local directory to sites>:/sites

I guess in summary it would be helpful to allow the config to be based on the TrueNAS filesystem similar to how Nextcloud is setup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants