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)
- Ntfy notification type - button in notification does nothing HOT 1
- `[SERVICES] INFO: Failed to start nscd` caused by custom UUID/GUID without perimissions to start services HOT 3
- Do not send notifications for `UP` notifications HOT 3
- monitor in a group if down is reported double HOT 1
- how to add a delay alert for ping HOT 1
- Uptime-Kuma does not respond HOT 3
- Environment Variable To Change Name HOT 1
- `saveStatusPage` socket handler does not use `icon` specified in payload if not base64-encoded HOT 4
- api integration for displaying which monitors do have maintenance and give informations about it HOT 2
- Notifications for Diffrent Events HOT 1
- Can't set timezone Europe/Kyiv HOT 1
- Display Monitor Groups in Mail Subject HOT 2
- Some commits are not present in release HOT 1
- Proxy option to notifications channel HOT 1
- Allow expanding error messages/toasts to show the full request/response HOT 1
- Add version info of app to uptime kuma HOT 3
- Cloudflare sites cause ---Timeout of 48000ms exceeded HOT 5
- Incorect message "getaddrinfo ENOTFOUND" on 4xx sites HOT 5
- Clonfigurable Toast notification timeouts to enabling autoclosing `DOWN` toasts 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.