收起左侧

保存网页ArchiveBox 求助怎么注册管理员

4
回复
280
查看
[ 复制链接 ]

3

主题

7

回帖

0

牛值

江湖小虾

2025-2-25 14:46:29 显示全部楼层 阅读模式
悬赏1飞牛币已解决

求助怎么注册,因为软件不准新建非root账号

360截图20250225143802194.jpg

输入archivebox manage createsuperuser

360截图20250225144525854.jpg

附件: 您需要 登录 才可以下载或查看,没有账号?立即注册
收藏
送赞
分享

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x

1

主题

1070

回帖

550

牛值

共建版主

社区上线纪念勋章社区共建团荣誉勋章飞牛百度网盘玩家

2025-2-25 14:46:30 显示全部楼层

根据官方docker-compose文档,启用 ADMIN_USERNAMEADMIN_PASSWORD,账户名admin可以修改为你自己的账户名。

# Usage:
#     mkdir -p ~/archivebox/data && cd ~/archivebox
#     curl -fsSL 'https://docker-compose.archivebox.io' > docker-compose.yml
#     docker compose run archivebox version
#     docker compose run archivebox config --set SAVE_ARCHIVE_DOT_ORG=False
#     docker compose run archivebox add --depth=1 'https://news.ycombinator.com'
#     docker compose run -T archivebox add < bookmarks.txt
#     docker compose up -d && open 'https://localhost:8000'
#     docker compose run archivebox help
# Documentation:
#     https://github.com/ArchiveBox/ArchiveBox/wiki/Docker#docker-compose

services:
    archivebox:
        image: archivebox/archivebox:latest
        ports:
            - 8000:8000
        volumes:
            - ./data:/data
            # ./data/personas/Default/chrome_profile/Default:/data/personas/Default/chrome_profile/Default
        environment:
            # - ADMIN_USERNAME=admin            # creates an admin user on first run with the given user/pass combo
            # - ADMIN_PASSWORD=SomeSecretPassword
            - ALLOWED_HOSTS=*                   # set this to the hostname(s) you're going to serve the site from!
            - CSRF_TRUSTED_ORIGINS=http://localhost:8000  # you MUST set this to the server's URL for admin login and the REST API to work
            - PUBLIC_INDEX=True                 # set to False to prevent anonymous users from viewing snapshot list
            - PUBLIC_SNAPSHOTS=True             # set to False to prevent anonymous users from viewing snapshot content
            - PUBLIC_ADD_VIEW=False             # set to True to allow anonymous users to submit new URLs to archive
            - SEARCH_BACKEND_ENGINE=sonic       # tells ArchiveBox to use sonic container below for fast full-text search
            - SEARCH_BACKEND_HOST_NAME=sonic
            - SEARCH_BACKEND_PASSWORD=SomeSecretPassword
            # - PUID=911                        # set to your host user's UID & GID if you encounter permissions issues
            # - PGID=911                        # UID/GIDs lower than 500 may clash with system uids and are not recommended
            # For options below, it's better to set in data/ArchiveBox.conf or use `docker compose run archivebox config --set SOME_KEY=someval` instead of setting here:
            # - MEDIA_MAX_SIZE=750m             # increase this filesize limit to allow archiving larger audio/video files
            # - TIMEOUT=60                      # increase this number to 120+ seconds if you see many slow downloads timing out
            # - CHECK_SSL_VALIDITY=True         # set to False to disable strict SSL checking (allows saving URLs w/ broken certs)
            # - SAVE_ARCHIVE_DOT_ORG=True       # set to False to disable submitting all URLs to Archive.org when archiving
            # - USER_AGENT="..."                # set a custom USER_AGENT to avoid being blocked as a bot
            # ...
            # For more info, see: https://github.com/ArchiveBox/ArchiveBox/wiki/Docker#configuration
谢谢,在SSH搞好了。因为主机没有外接显示器键盘,图省事,一直没进SSH。  详情 回复
2025-3-1 17:00

3

主题

7

回帖

0

牛值

江湖小虾

2025-3-1 17:00:43 楼主 显示全部楼层
谢谢,在SSH搞好了。因为主机没有外接显示器键盘,图省事,一直没进SSH。
怎么搞的请问  详情 回复
2025-4-19 19:16

1

主题

2

回帖

0

牛值

江湖小虾

2025-4-19 19:16:59 显示全部楼层
厨房电器-? 发表于 2025-3-1 17:00
谢谢,在SSH搞好了。因为主机没有外接显示器键盘,图省事,一直没进SSH。

怎么搞的请问
下载一个putty,进SSH,然后就按照截图上面的输入,就可以了  详情 回复
2025-4-21 14:33

3

主题

7

回帖

0

牛值

江湖小虾

2025-4-21 14:33:41 楼主 显示全部楼层

下载一个putty,进SSH,然后就按照截图上面的输入,就可以了
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则