NDBoost
Chevereto Member
to tell the chevereto docker container that it's being proxied and to use it instead of ... 'localhost:8830'?
▶ Reproduction steps
No CSS or JS is loading and the server console log is throwing 404 errors saying cannot load http://localhost:8830/ files
stack yaml (docker-compose) definition within portainer
nginx reverse proxy vhost definition
▶ Reproduction steps
- I am running the httpd-php.yaml docker-compose file per this guide (however I'm using portainer to deploy it as a stack with my existing sql container)
- I have nginx service running on the host server which is reverse proxying img.ndboost.com to the chevereto "bootstrap" container, which is running on 127.0.0.1:8830
- When trying to run the installer https://img.ndboost.com/install, it just throws errors and doesnt display properly
No CSS or JS is loading and the server console log is throwing 404 errors saying cannot load http://localhost:8830/ files
stack yaml (docker-compose) definition within portainer
YAML:
version: "3.2"
services:
hastebin:
restart: always
image: rlister/hastebin
volumes:
- /mnt/docker/hastebin/storage/:/app/data
ports:
- 127.0.0.1:7777:7777
environment:
HOST: "0.0.0.0"
PORT: "7777"
STORAGE_TYPE: "file"
STORAGE_PATH: "./data"
mysql:
container_name: mysql
image: mysql:5.7
volumes:
- /mnt/docker/data/mysql:/var/lib/mysql
restart: always
ports:
- 127.0.0.1:3306:3306
environment:
MYSQL_ROOT_PASSWORD: ${DATABASE_ROOT_PASSWORD}
MYSQL_DATABASE: ${DATABASE_NAME}
MYSQL_USER: ${DATABASE_USER}
MYSQL_PASSWORD: ${DATABASE_PASSWORD}
chv-bootstrap:
container_name: chevereto-v3_bootstrap
image: ghcr.io/chevereto/httpd-php:3.20
volumes:
- /mnt/docker/data/chevereto/storage:/var/www/html/images/
- /mnt/docker/data/chevereto/assets:/var/www/html/_assets/
- /mnt/docker/data/chevereto/app:/var/www/html/
ports:
- 127.0.0.1:8830:80
restart: always
depends_on:
- mysql
environment:
CHEVERETO_TAG: "3.20"
CHEVERETO_LICENSE: ${LICENSE}
CHEVERETO_DB_HOST: mysql
CHEVERETO_DB_USER: ${DATABASE_USER}
CHEVERETO_DB_PASS: ${DATABASE_PASSWORD}
CHEVERETO_DB_PORT: 3306
CHEVERETO_DB_NAME: ${DATABASE_NAME}
CHEVERETO_HTTPS: 1
CHEVERETO_ASSET_STORAGE_TYPE: local
CHEVERETO_ASSET_STORAGE_URL: https://img.ndboost.com/_assets/
CHEVERETO_ASSET_STORAGE_BUCKET: /var/www/html/_assets/
nginx reverse proxy vhost definition
Code:
server {
server_name img.ndboost.com;
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/gist.ndboost.com-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/gist.ndboost.com-0001/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
location / {
proxy_pass http://127.0.0.1:8830;
}
}
server {
if ($host = img.ndboost.com) {
return 301 https://$host$request_uri;
} # managed by Certbot
listen 80;
server_name img.ndboost.com;
return 404; # managed by Certbot
}