Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ENV BASE_URL=""
ENV SEERR_BASE_URL=""
ENV SEERR_HEADER="null"
ENV FLADDER_WEBPATH="/"
ENV HIDE_PASSWORD_LOGIN=""

COPY build/web /usr/share/nginx/html
COPY docker-entrypoint.sh /docker-entrypoint.sh
Expand Down
1 change: 1 addition & 0 deletions Dockerfile-rootless
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ ENV BASE_URL=""
ENV SEERR_BASE_URL=""
ENV SEERR_HEADER="null"
ENV FLADDER_WEBPATH="/"
ENV HIDE_PASSWORD_LOGIN=""

USER root
COPY build/web /usr/share/nginx/html
Expand Down
1 change: 1 addition & 0 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ services:
- SEERR_BASE_URL=https://seerr-url #OPTIONAL: Presets Seerr base URL
- SEERR_HEADER={"key":"value"} #OPTIONAL: JSON object string of Seerr headers
- FLADDER_WEBPATH=/ #OPTIONAL: Configures a subpath to run Fladder at
- HIDE_PASSWORD_LOGIN= #OPTIONAL: Set to "true" to hide password fields and only show QuickConnect
5 changes: 4 additions & 1 deletion docker-entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
#!/bin/sh
set -e

HIDE_PW_VAL=$([ "$HIDE_PASSWORD_LOGIN" = "true" ] && echo true || echo null)

# Generate config.json from environment variables
cat > /usr/share/nginx/html/assets/config/config.json <<EOF
{
"baseUrl": "$BASE_URL",
"seerrBaseUrl": "$SEERR_BASE_URL"
"seerrBaseUrl": "$SEERR_BASE_URL",
"hidePasswordLogin": $HIDE_PW_VAL
}
EOF

Expand Down
4 changes: 4 additions & 0 deletions lib/l10n/app_en.arb
Original file line number Diff line number Diff line change
Expand Up @@ -2202,6 +2202,10 @@
"@seerrAuthLocal": {},
"seerrAuthJellyfin": "Jellyfin",
"@seerrAuthJellyfin": {},
"hidePasswordLogin": "Hide password login",
"@hidePasswordLogin": {},
"hidePasswordLoginDescription": "Only show QuickConnect on the login screen",
"@hidePasswordLoginDescription": {},
"seerrUserFetchFailed": "Failed to fetch user from Seerr",
"@seerrUserFetchFailed": {},
"seerrEnterServerUrlFirst": "Enter a Seerr server URL first",
Expand Down
1 change: 1 addition & 0 deletions lib/models/login_screen_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ abstract class LoginScreenModel with _$LoginScreenModel {
@Default(false) bool loading,
String? tempSeerrUrl,
String? tempSeerrSessionCookie,
@Default(false) bool hidePasswordLogin,
}) = _LoginScreenModel;
}

Expand Down
45 changes: 34 additions & 11 deletions lib/models/login_screen_model.freezed.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions lib/models/settings/client_settings_model.dart
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,7 @@ abstract class ClientSettingsModel with _$ClientSettingsModel {
@Default(false) bool usePosterForLibrary,
@Default(false) bool useSystemIME,
@Default(false) bool useTVExpandedLayout,
@Default(false) bool hidePasswordLogin,
String? lastViewedUpdate,
int? libraryPageSize,
@Default({}) Map<GlobalHotKeys, KeyCombination> shortcuts,
Expand Down
29 changes: 27 additions & 2 deletions lib/models/settings/client_settings_model.freezed.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading