Skip to content

Commit

Permalink
Rename variables
Browse files Browse the repository at this point in the history
  • Loading branch information
ku1ik committed Dec 13, 2023
1 parent 1a56002 commit f62e528
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions config/runtime.exs
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ if config_env() in [:prod, :dev] do
ip_period: String.to_integer(env.("IP_RATE_PERIOD") || "1") * 1_000
end

file_cache_path = env.("FILE_CACHE_PATH")
cache_path = env.("CACHE_PATH")

if file_cache_path do
config :asciinema, Asciinema.FileCache, path: file_cache_path
if cache_path do
config :asciinema, Asciinema.FileCache, path: cache_path
end

if bucket = env.("S3_BUCKET") do
Expand All @@ -108,7 +108,7 @@ if config_env() in [:prod, :dev] do
cache_store: Asciinema.FileStore.Local

config :asciinema, Asciinema.FileStore.Local,
path: Path.join(file_cache_path || "/var/cache/asciinema", "uploads")
path: Path.join(cache_path || "/var/cache/asciinema", "uploads")

config :ex_aws,
region: [{:system, "S3_REGION"}, {:system, "AWS_REGION"}],
Expand Down

0 comments on commit f62e528

Please sign in to comment.