• Welcome to the Chevereto User Community!

    Here, users from all over the world come together to learn, share, and collaborate on everything related to Chevereto. It's a place to exchange ideas, ask questions, and help improve the software.

    Please keep in mind:

    • This community is user-driven. Always be polite and respectful to others.
    • Support development by purchasing a Chevereto license, which also gives you priority support.
    • Go further by joining the Community Subscription for even faster response times and to help sustain this space
  • Chevereto Support CLST

    Support response

    Support checklist

    • Got a Something went wrong message? Read this guide and provide the actual error. Do not skip this.
    • Confirm that the server meets the System Requirements
    • Check for any available Hotfix - your issue could be already reported/fixed
    • Read documentation - It will be required to Debug and understand Errors for a faster support response

I am unable to access chevereto as a docker container, when its reverse proxied behind nginx, is there an environment variable that i need to set

NDBoost

Chevereto Member
to tell the chevereto docker container that it's being proxied and to use it instead of ... 'localhost:8830'?

▶ Reproduction steps
  1. 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)
  2. 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
  3. When trying to run the installer https://img.ndboost.com/install, it just throws errors and doesnt display properly
😢 Unexpected result

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


}
 

Attachments

  • 1637293122527.png
    1637293122527.png
    252.4 KB · Views: 1
Back
Top