mirror of
https://github.com/Suwayomi/docker-tachidesk.git
synced 2025-12-10 06:42:12 +01:00
Add new JWT variables
This commit is contained in:
3
.github/workflows/container.yml
vendored
3
.github/workflows/container.yml
vendored
@@ -124,6 +124,9 @@ jobs:
|
||||
-e AUTH_MODE=basic_auth \
|
||||
-e AUTH_USERNAME=manga \
|
||||
-e AUTH_PASSWORD=hello123 \
|
||||
-e JWT_AUDIENCE=suwayomi-server-api2 \
|
||||
-e JWT_TOKEN_EXPIRY=10m \
|
||||
-e JWT_REFRESH_EXPIRY=30d \
|
||||
-e DEBUG=true \
|
||||
-e MAX_LOG_FILES=1000 \
|
||||
-e MAX_LOG_FILE_SIZE=1000mb \
|
||||
|
||||
@@ -47,9 +47,12 @@ There are a number of environment variables available to configure Suwayomi:
|
||||
| **SOCKS_PROXY_USERNAME** | ` ` | The username to log in to the SOCKS proxy |
|
||||
| **SOCKS_PROXY_PASSWORD** | ` ` | The password to log in to the SOCKS proxy |
|
||||
| **DOWNLOAD_AS_CBZ** | `false` | Whether Suwayomi should save the manga to disk in CBZ format |
|
||||
| **AUTH_MODE** | `none` | Whether Suwayomi requires a login to get in. `none` or `basic_auth` or `simple_login` |
|
||||
| **AUTH_MODE** | `none` | Whether Suwayomi requires a login to get in. `none` or `basic_auth` or `simple_login` or `ui_login` |
|
||||
| **AUTH_USERNAME** | ` ` | The username to log in to Suwayomi |
|
||||
| **AUTH_PASSWORD** | ` ` | The password to log in to Suwayomi |
|
||||
| **JWT_AUDIENCE** | `suwayomi-server-api` | The JWT Audience of the ui_login token |
|
||||
| **JWT_TOKEN_EXPIRY** | `5m` | The JWT access token expiry timeout, in ISO-8601 Duration format |
|
||||
| **JWT_REFRESH_EXPIRY** | `60d` | The JWT refresh token expiry timeout, in ISO-8601 Duration format |
|
||||
| **DEBUG** | `false` | If extra logging is enabled. Useful for development and troubleshooting. |
|
||||
| **MAX_LOG_FILES** | `31` | The max number of days to keep files before they get deleted |
|
||||
| **MAX_LOG_FILE_SIZE** | `10mb` | The max size of a log file - Possible values: 1 (bytes), 1KB (kilobytes), 1MB (megabytes), 1GB (gigabytes) |
|
||||
|
||||
@@ -72,6 +72,9 @@ AUTH_PASSWORD_VAL="${AUTH_PASSWORD:-$BASIC_AUTH_PASSWORD}"
|
||||
sed -i -r "s/server.authMode = \"(.*?)\"( #)?/server.authMode = \"${AUTH_MODE_VAL:-\1}\" #/" /home/suwayomi/.local/share/Tachidesk/server.conf
|
||||
sed -i -r "s/server.authUsername = \"(.*?)\"( #)?/server.authUsername = \"${AUTH_USERNAME_VAL:-\1}\" #/" /home/suwayomi/.local/share/Tachidesk/server.conf
|
||||
sed -i -r "s/server.authPassword = \"(.*?)\"( #)?/server.authPassword = \"${AUTH_PASSWORD_VAL:-\1}\" #/" /home/suwayomi/.local/share/Tachidesk/server.conf
|
||||
sed -i -r "s/server.jwtAudience = \"(.*?)\"( #)?/server.jwtAudience = \"${JWT_AUDIENCE:-\1}\" #/" /home/suwayomi/.local/share/Tachidesk/server.conf
|
||||
sed -i -r "s/server.jwtTokenExpiry = \"(.*?)\"( #)?/server.jwtTokenExpiry = \"${JWT_TOKEN_EXPIRY:-\1}\" #/" /home/suwayomi/.local/share/Tachidesk/server.conf
|
||||
sed -i -r "s/server.jwtRefreshExpiry = \"(.*?)\"( #)?/server.jwtRefreshExpiry = \"${JWT_REFRESH_EXPIRY:-\1}\" #/" /home/suwayomi/.local/share/Tachidesk/server.conf
|
||||
|
||||
sed -i -r "s/server.basicAuthEnabled = ([0-9]+|[a-zA-Z]+)( #)?/server.basicAuthEnabled = ${BASIC_AUTH_ENABLED:-\1} #/" /home/suwayomi/.local/share/Tachidesk/server.conf
|
||||
sed -i -r "s/server.basicAuthUsername = \"(.*?)\"( #)?/server.basicAuthUsername = \"${BASIC_AUTH_USERNAME:-\1}\" #/" /home/suwayomi/.local/share/Tachidesk/server.conf
|
||||
|
||||
Reference in New Issue
Block a user