mirror of
https://github.com/TracksApp/tracks.git
synced 2025-09-22 05:50:47 +02:00
Merge pull request #2774 from Werkov/proxy-configuration
Allow autocompletion behind proxy
This commit is contained in:
commit
ac54c0fb6c
2 changed files with 9 additions and 0 deletions
|
@ -35,5 +35,7 @@ module Tracksapp
|
|||
|
||||
# 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
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue