GithubHelp home page GithubHelp logo

Comments (7)

jc21 avatar jc21 commented on May 18, 2024

A few questions...

  1. Do you definitely have a config json file mounted as /app/config/production.json ?
  2. Are you importing from a version 1 configuration?

from nginx-proxy-manager.

razzam21 avatar razzam21 commented on May 18, 2024
  1. I see in the logs that the system modified the config.json that I pointed at /app/config/production.json. I am guessing it is doing that part like it is supposed to. It added a jwt section with keys and then acts like it can't find them.

It now looks like this:

{
"database": {
"engine": "mysql",
"host": "10.10.10.200",
"name": "nginx",
"user": "nginx",
"password": "nginx",
"port": 3306
},
"jwt": {
"key": "-----BEGIN RSA PRIVATE KEY-----[lots of characters]-----END RSA PRIVATE KEY-----",
"pub": "-----BEGIN PUBLIC KEY-----[lots of characters]----END PUBLIC KEY-----"
}
}

  1. No I am not importing. This is a clean build/install.

from nginx-proxy-manager.

jc21 avatar jc21 commented on May 18, 2024

That is very strange. I've just tested a clean install with the latest image and things are working fine. The fact that it wrote the keys to the file means it should be able to read from them. If you're using docker-compose, can you attach the output of this command: docker-compose config

Here's mine:

services:
  app:
    depends_on:
    - db
    environment:
      FORCE_COLOR: '1'
    image: jc21/nginx-proxy-manager:2
    ports:
    - 80:80/tcp
    - 81:81/tcp
    - 443:443/tcp
    restart: always
    volumes:
    - /opt/nginx-proxy-manager/config.json:/app/config/production.json:rw
    - /opt/nginx-proxy-manager/data:/data:rw
    - /opt/nginx-proxy-manager/letsencrypt:/etc/letsencrypt:rw
  db:
    environment:
      MYSQL_DATABASE: npm
      MYSQL_PASSWORD: npm
      MYSQL_ROOT_PASSWORD: npm
      MYSQL_USER: npm
    image: mariadb:10.3.7
    restart: always
    volumes:
    - /opt/nginx-proxy-manager/data/mysql:/var/lib/mysql:rw
version: '2.0'

Perhaps

from nginx-proxy-manager.

SGStino avatar SGStino commented on May 18, 2024

seeing the same issue, no docker compose was used.
However, recreating the container did solve the issue.

from nginx-proxy-manager.

razzam21 avatar razzam21 commented on May 18, 2024

Sorry about the delay. I am not using docker-compose.

from nginx-proxy-manager.

Aerya avatar Aerya commented on May 18, 2024

I had to restart the container too. Then it's okay.

from nginx-proxy-manager.

razzam21 avatar razzam21 commented on May 18, 2024

I came back to it a couple of days later and it is working now. Weird.

from nginx-proxy-manager.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.