Skip to content

Commit 8fdb8ac

Browse files
committed
Update docs
1 parent 4fdc80b commit 8fdb8ac

File tree

2 files changed

+3
-52
lines changed

2 files changed

+3
-52
lines changed

docs/advanced-config/README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -96,9 +96,7 @@ services:
9696
# DB_MYSQL_PASSWORD: "npm" # use secret instead
9797
DB_MYSQL_PASSWORD__FILE: /run/secrets/MYSQL_PWD
9898
DB_MYSQL_NAME: "npm"
99-
# If you would rather use Sqlite uncomment this
100-
# and remove all DB_MYSQL_* lines above
101-
# DB_SQLITE_FILE: "/data/database.sqlite"
99+
# If you would rather use Sqlite, remove all DB_MYSQL_* lines above
102100
# Uncomment this if IPv6 is not enabled on your host
103101
# DISABLE_IPV6: 'true'
104102
volumes:

docs/setup/README.md

Lines changed: 2 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -122,13 +122,12 @@ Please note that the `jc21/mariadb-aria:latest` image might have some problems o
122122

123123
After the app is running for the first time, the following will happen:
124124

125-
1. The database will initialize with table structures
126-
2. GPG keys will be generated and saved in the configuration file
125+
1. GPG keys will be generated and saved in the data folder
126+
2. The database will initialize with table structures
127127
3. A default admin user will be created
128128

129129
This process can take a couple of minutes depending on your machine.
130130

131-
132131
## Default Administrator User
133132

134133
```
@@ -138,49 +137,3 @@ Password: changeme
138137
139138
Immediately after logging in with this default user you will be asked to modify your details and change your password.
140139
141-
## Configuration File
142-
143-
::: warning
144-
145-
This section is meant for advanced users
146-
147-
:::
148-
149-
If you would like more control over the database settings you can define a custom config JSON file.
150-
151-
152-
Here's an example for `sqlite` configuration as it is generated from the environment variables:
153-
154-
```json
155-
{
156-
"database": {
157-
"engine": "knex-native",
158-
"knex": {
159-
"client": "sqlite3",
160-
"connection": {
161-
"filename": "/data/database.sqlite"
162-
},
163-
"useNullAsDefault": true
164-
}
165-
}
166-
}
167-
```
168-
169-
You can modify the `knex` object with your custom configuration, but note that not all knex clients might be installed in the image.
170-
171-
Once you've created your configuration file you can mount it to `/app/config/production.json` inside you container using:
172-
173-
```
174-
[...]
175-
services:
176-
app:
177-
image: 'jc21/nginx-proxy-manager:latest'
178-
[...]
179-
volumes:
180-
- ./config.json:/app/config/production.json
181-
[...]
182-
[...]
183-
```
184-
185-
**Note:** After the first run of the application, the config file will be altered to include generated encryption keys unique to your installation.
186-
These keys affect the login and session management of the application. If these keys change for any reason, all users will be logged out.

0 commit comments

Comments
 (0)