site-libsoc/Server/config/env/prod.jl

19 lines
786 B
Julia
Raw Permalink Normal View History

2023-06-15 01:41:54 +07:00
using Genie, Logging
Genie.Configuration.config!(
2023-06-24 20:46:45 +07:00
server_port = 8001,
2023-06-15 01:41:54 +07:00
server_host = "0.0.0.0",
log_level = Logging.Error,
log_to_file = false,
2023-06-24 21:18:44 +07:00
server_handle_static_files = false, # for best performance set up Nginx or Apache web proxies and set this to false
2023-06-15 01:41:54 +07:00
path_build = "build",
format_julia_builds = false,
format_html_output = false
)
if Genie.config.server_handle_static_files
@warn("For performance reasons Genie should not serve static files (.css, .js, .jpg, .png, etc) in production.
It is recommended to set up Apache or Nginx as a reverse proxy and cache to serve static assets.")
end
ENV["JULIA_REVISE"] = "off"