Skip to content

Commit

Permalink
chore(ttydbridge): update auth method (#647)
Browse files Browse the repository at this point in the history
Most Linux distributions (including the latest ZimaOS) have the `login`
command.

Default to using Linux authentication, no need to set a password
separately, making it more convenient to use.
  • Loading branch information
Cp0204 authored Dec 23, 2024
1 parent 1137820 commit 88e2ee4
Showing 1 changed file with 7 additions and 8 deletions.
15 changes: 7 additions & 8 deletions Apps/ttydbridge/docker-compose.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
name: ttydbridge
services:
ttydbridge:
command: []
container_name: ttydbridge
deploy:
resources:
reservations:
memory: 8M
environment:
- EXEC_DIR=/opt
- HTTP_PASSWORD=password
- HTTP_USERNAME=admin
# - HTTP_PASSWORD=password
# - HTTP_USERNAME=admin
- PORT=2222
- START_COMMAND=bash
- START_COMMAND=login
image: cp0204/ttydbridge:v0.0.3
labels:
icon: https://cdn.jsdelivr.net/gh/IceWhaleTech/CasaOS-AppStore@main/Apps/ttydbridge/icon.png
Expand Down Expand Up @@ -55,15 +54,15 @@ x-casaos:
tips:
before_install:
en_us: >
1. You can set the `HTTP_USERNAME` and `HTTP_PASSWORD` variables to modify or remove HTTP authentication.
1. Default to using Linux system user authentication.
2. The default username and password are `admin` and `password`.
2. You can increase HTTP authentication by setting the `HTTP_USERNAME` and `HTTP_PASSWORD` variables.
[Official DOC](https://hub.docker.com/r/cp0204/ttydbridge)
zh_cn: |
1. 可以设置 `HTTP_USERNAME` `HTTP_PASSWORD` 变量,修改与删掉 HTTP 鉴权
1. 默认使用 Linux 系统用户鉴权
2. 默认的账号密码为 `admin` `password`
2. 可以通过设置 `HTTP_USERNAME` `HTTP_PASSWORD` 变量,增加 HTTP 鉴权
[官方文档](https://hub.docker.com/r/cp0204/ttydbridge)
title:
Expand Down

0 comments on commit 88e2ee4

Please sign in to comment.