Merge pull request #2774 from Werkov/proxy-configuration

Allow autocompletion behind proxy
This commit is contained in:
Jyri-Petteri Paloposki 2022-08-12 13:35:07 +03:00 committed by GitHub
commit ac54c0fb6c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 9 additions and 0 deletions

View file

@ -35,5 +35,7 @@ module Tracksapp
# configure Tracks to handle deployment in a subdir # configure Tracks to handle deployment in a subdir
config.relative_url_root = SITE_CONFIG['subdir'] if SITE_CONFIG['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
end end

View file

@ -39,6 +39,13 @@ force_ssl: false
# the relative URL. Mongrel, for example, has a --prefix option. # the relative URL. Mongrel, for example, has a --prefix option.
# subdir: "/tracks" # 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. # Set to true to allow anyone to sign up for a username.
open_signups: false open_signups: false