Skip to content

Commit

Permalink
fix env var
Browse files Browse the repository at this point in the history
  • Loading branch information
John Corser committed Jan 2, 2025
1 parent f273b9b commit e49b203
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions apache-config.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ AddOutputFilterByType SUBSTITUTE text/html

# Define environment variable substitution
<Location />
# Use FORCE_JELLYFIN_SERVER_URL directly
Substitute "s|<head>|<head><script>window.ENV = { FORCE_JELLYFIN_SERVER_URL: '${FORCE_JELLYFIN_SERVER_URL}' };</script>|ni"
# Only perform substitution if FORCE_JELLYFIN_SERVER_URL is set
<If "-n env('FORCE_JELLYFIN_SERVER_URL')">
Substitute "s|<head>|<head><script>window.ENV = { FORCE_JELLYFIN_SERVER_URL: '${FORCE_JELLYFIN_SERVER_URL}' };</script>|ni"
</If>
</Location>

0 comments on commit e49b203

Please sign in to comment.