fix: update theme paths to match new mount location
This commit is contained in:
@@ -8,7 +8,7 @@ services:
|
|||||||
volumes:
|
volumes:
|
||||||
- asciinema_data:/var/opt/asciinema
|
- asciinema_data:/var/opt/asciinema
|
||||||
- ./custom.exs:/opt/app/etc/custom.exs:ro
|
- ./custom.exs:/opt/app/etc/custom.exs:ro
|
||||||
- ./theme:/opt/app/priv/static/theme:ro
|
- ./theme:/opt/app/priv/static/theme/custom:ro
|
||||||
environment:
|
environment:
|
||||||
SECRET_KEY_BASE: ${ASCIINEMA_SECRET_KEY}
|
SECRET_KEY_BASE: ${ASCIINEMA_SECRET_KEY}
|
||||||
URL_HOST: ${ASCIINEMA_TRAEFIK_HOST}
|
URL_HOST: ${ASCIINEMA_TRAEFIK_HOST}
|
||||||
|
|||||||
@@ -16,14 +16,9 @@ config :asciinema, Asciinema.Emails.Mailer,
|
|||||||
versions: [:"tlsv1.2", :"tlsv1.3"]
|
versions: [:"tlsv1.2", :"tlsv1.3"]
|
||||||
]
|
]
|
||||||
|
|
||||||
# Serve custom theme files as static assets
|
|
||||||
config :asciinema, AsciinemaWeb.Endpoint,
|
|
||||||
static_url: [path: "/theme"],
|
|
||||||
check_origin: false
|
|
||||||
|
|
||||||
# Try to inject custom head HTML (if supported by asciinema)
|
# Try to inject custom head HTML (if supported by asciinema)
|
||||||
config :asciinema, AsciinemaWeb.Endpoint,
|
config :asciinema, AsciinemaWeb.Endpoint,
|
||||||
extra_head_html: """
|
extra_head_html: """
|
||||||
<link rel="stylesheet" href="/theme/custom.css">
|
<link rel="stylesheet" href="/theme/custom/custom.css">
|
||||||
<link rel="icon" type="image/svg+xml" href="/theme/favicon.svg">
|
<link rel="icon" type="image/svg+xml" href="/theme/custom/favicon.svg">
|
||||||
"""
|
"""
|
||||||
|
|||||||
Reference in New Issue
Block a user