Comments (7)
-e DB_PASS_FILE=/etc/wikijs-sitemap/.db-secret \ -v /etc/wikijs-sitemap/.db-secret:/etc/wiki/.db-secret:ro \
it seems that DB_PASS_FILE does not allow other dirs than yours?
From the line above, there is an error here -v /etc/wikijs-sitemap/.db-secret:/etc/wiki/.db-secret:ro
. Notice the wrong path given/etc/wiki/.db-secret:ro
? which should be -v /etc/wikijs-sitemap/.db-secret:/etc/wikijs-sitemap/.db-secret:ro
.
from wikijs-sitemap.
To use a database password file, first ensure the password file /etc/wiki/.db-secret
exists by creating it with vi /etc/wiki/.db-secret
and adding your Wiki.js db password.
Then, include -e DB_PASS_FILE=/etc/wiki/.db-secret -v /etc/wiki/.db-secret:/etc/wiki/.db-secret:ro
in your container setup to securely link the password.
Let me know if you are still having issues.
from wikijs-sitemap.
ok, your setup works.
Thank you.
But it do not work with a different directory.
even aanother dir in /etc doesnt work.
Unable read DB_PASS_FILE secret env variable: Error: ENOENT: no such file or directory, open '/etc/wikijs-sitemap/.db-secret'
This File /etc/wikijs-sitemap/.db-secret is readable for all.
-e DB_PASS_FILE=/etc/wikijs-sitemap/.db-secret \ -v /etc/wikijs-sitemap/.db-secret:/etc/wiki/.db-secret:ro \
it seems that DB_PASS_FILE does not allow other dirs than yours?
from wikijs-sitemap.
Are you sure you created the password file in the directory of your choice? AFAIK, DB_PASS_FILE
is not limited to any file path.
from wikijs-sitemap.
I will try. thank you.
It seems I still misunderstand the volume concept.
I come back with result shortly.
from wikijs-sitemap.
Yes it really works.
Thank you a lot for your time!
from wikijs-sitemap.
Glad to hear.
from wikijs-sitemap.
Related Issues (10)
- Sitemap regeneration period HOT 1
- Error: Cannot find module 'node-cron' HOT 2
- Docker image could not be run on linux/amd64 platform HOT 2
- Sitemap mysql HOT 2
- Sitemap mysql undefined domain HOT 10
- Locales missing in urls HOT 4
- sitemap.xml is not generated because static/sitemap.xml does not exist. HOT 3
- Feature Request: Blacklists HOT 6
- sitemap is generated at the first start and restart but not while running later HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wikijs-sitemap.