[PR #1245] Add config options to initialize admin user on first run without prompting #2871

Closed
opened 2026-03-01 18:01:00 +03:00 by kerem · 0 comments
Owner

Original Pull Request: https://github.com/ArchiveBox/ArchiveBox/pull/1245

State: closed
Merged: Yes


Summary

This adds the option to create an admin user on initialization without prompting. The configuration options ARCHIVEBOX_USERNAME and ARCHIVEBOX_PASSWORD are only checked on first initialization (if there's no index.sqlite3 file). The admin user is only created if both options are present.

I'm not sure if there are some other use cases that exist that are not covered by this implementation, please let me know if so.

Related issues

#734

Changes these areas

  • Bugfixes
  • Feature behavior
  • Command line interface
  • Configuration options
  • Internal architecture
  • Snapshot data layout on disk
**Original Pull Request:** https://github.com/ArchiveBox/ArchiveBox/pull/1245 **State:** closed **Merged:** Yes --- <!-- IMPORTANT: Do not submit PRs with only formatting / PEP8 / line length changes. --> # Summary This adds the option to create an admin user on initialization without prompting. The configuration options `ARCHIVEBOX_USERNAME` and `ARCHIVEBOX_PASSWORD` are only checked on first initialization (if there's no `index.sqlite3` file). The admin user is only created if both options are present. I'm not sure if there are some other use cases that exist that are not covered by this implementation, please let me know if so. <!--e.g. This PR fixes ABC or adds the ability to do XYZ...--> # Related issues <!-- e.g. #123 or Roadmap goal # https://github.com/pirate/ArchiveBox/wiki/Roadmap --> #734 # Changes these areas - [ ] Bugfixes - [ ] Feature behavior - [ ] Command line interface - [x] Configuration options - [ ] Internal architecture - [ ] Snapshot data layout on disk
kerem 2026-03-01 18:01:00 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#2871
No description provided.