kbrianngeno 17a8b6bce2 Set low default values for directives
Adjust directive values as needed depending on site requirements
e.g client_max_body_size 500M in minio.conf while other sites are limited to 1k
2026-03-21 09:35:02 +00:00
2026-03-21 09:28:08 +00:00
2026-03-17 09:15:50 +00:00

Novicelab Nginx

Nginx + Certbot + GoAccess

Logs

All logs stored in data/logs site files

Site confs

Located in data/conf.d

Container variables

Harbor and Opencloud site confs use host IP; they have expansive configs with their own Docker networks. \

All other site confs use a backend variable that points to the contioner as such:

server {
    listen 443 ssl;
    resolver 127.0.0.11 8.8.8.8 8.8.4.4 valid=300s;
    resolver_timeout 5s;

    set $adminer_backend adminer:8080; 

    location / { 
        ## Advantage: Nginx container start won't be blocked should the 
        ## below services container be down
        ## Upstream works just as well
        proxy_pass http://$adminer_backend;
        ...
    }
}

Upstream structure

http {
    upstream goaccess {
        server goaccess:7890 weight=1 fail_timeout=30s;
    }
    server {
        listen 443 ssl;

        location /ws {
            proxy_pass http://goaccess;
            ...
        }
    }
}
mkdir nginx && cd nginx
git clone https://gitea.novicelab.io/novicelab.io/nginx.git .

docker compose up -d
Description
No description provided
Readme 162 KiB
Languages
Nginx 100%