Custom Domain #2277
Unanswered
SahilSingla
asked this question in
Q&A
Custom Domain
#2277
Replies: 1 comment
-
|
You can run Fizzy behind a proxy in several ways, as long as the proxy handles the (sub)domain. There is an environment variable called BASE_URL, but it is only used in production.rb: # Base URL for links in emails and other external references.
# Set BASE_URL to your instance's public URL (e.g., https://fizzy.example.com)
if base_url = ENV["BASE_URL"].presence
uri = URI.parse(base_url)
url_options = { host: uri.host, protocol: uri.scheme }
url_options[:port] = uri.port if uri.port != uri.default_port
routes.default_url_options = url_options
config.action_mailer.default_url_options = url_options
endThis piece of code is only used for route helpers and does not affect anything else and does not have any other side effects. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi Team,
Thank you for open sourcing this wonderful project.
I was wondering if Fizzy team is by any chance considering supporting custom domain with the hosted solution?
Thanks
Sahil
Beta Was this translation helpful? Give feedback.
All reactions