Skip to content

Commit

Permalink
Merge pull request #2774 from Werkov/proxy-configuration
Browse files Browse the repository at this point in the history
Allow autocompletion behind proxy
  • Loading branch information
ZeiP authored Aug 12, 2022
2 parents 9ae21dd + d52893b commit ac54c0f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
2 changes: 2 additions & 0 deletions config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,5 +35,7 @@ class Application < Rails::Application

# configure Tracks to handle deployment in a subdir
config.relative_url_root = SITE_CONFIG['subdir'] if SITE_CONFIG['subdir']
# or deployment behind a proxy
config.action_controller.default_url_options = SITE_CONFIG['default_url_options'] if SITE_CONFIG['default_url_options']
end
end
7 changes: 7 additions & 0 deletions config/site.yml.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,13 @@ force_ssl: false
# the relative URL. Mongrel, for example, has a --prefix option.
# subdir: "/tracks"

# Set this to respective values if you're instance is running behind a proxy
# (e.g. localhost:3000 is not the client visible host).
# default_url_options:
# :host: 'example.org'
# :protocol: 'https://'
# :port: 443

# Set to true to allow anyone to sign up for a username.
open_signups: false

Expand Down

0 comments on commit ac54c0f

Please sign in to comment.