Comments (4)
you can generate the intial databas via
export DOCKER_ID=`docker run --rm -d -v ./uptime-kuma:/app/data louislam/uptime-kuma:1 | tail -1`
sleep 60 # higher than nessesary, can be tuned
docker stop $DOCKER_ID
from uptime-kuma.
I think this is an XY-Problem.
=> What are you trying to do in the first place? You forgot the WHY.
Reaching into the database is the most brittle way to configure us that I can think of.
You are inherently making yourself tied to a minor version and cannot expect us to respect semver for internal behaviour (such as db layout).
Tip
In case you are looking for an API, please have a look at BigBoot/AutoKuma
(cli or docker automation) or uptime-kuma-api
An official REST-API is coming, but is a few releases off still. See #118 for further details
from uptime-kuma.
The why is simple: I want to be able to bootstrap a bunch of images at once without having to manually configure them. I'm okay with tying myself to a minor version for the initial launch.
from uptime-kuma.
Here's a simple use case. I would like to set the username and password for the inital admin user programmatically. The "npm run reset-password" script only works if the database is already configured.
- Create Database
- Set password using built in script
- Continue launching server
This use case requires no direct database changes or access, and simply uses the scripts provided to ensure the first admin users are created before opening connections up to anyone.
from uptime-kuma.
Related Issues (20)
- What's the health-check api url for uptime kuma? HOT 1
- Does not work when using nginx reverse proxy HOT 6
- Warning Status Code for HTTP(s) Monitors HOT 2
- get error when try upload a backup json HOT 7
- Release 2.0.0-dev for Large environment testing HOT 1
- Uptime-Kuma causing ping floods HOT 6
- Geographic Map Integration HOT 2
- Is it possible to configure the content of status page to be displayed by day? HOT 1
- image update, but no new release HOT 3
- Retag latest docker with previuos version 1.23.13 HOT 2
- Can I change the prefix of onebot reply? HOT 1
- Cannot access at http://localhost:3001 HOT 1
- Ability to Change Root URL HOT 1
- Fixing "Cannot assign requested address" errors HOT 6
- Support for secret variables HOT 10
- Every time pod is restarting I lost all data due to wrong NFS-Permissions set HOT 11
- Remove monitor warning in logs under maintenance HOT 4
- [groups] More nesting and parent/child options HOT 1
- Edit the telegram notification message template HOT 1
- Group behavior change when deleting child monitor that has a "down" status 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 uptime-kuma.