-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Relative DB URLs #1319
Merged
Merged
Relative DB URLs #1319
Changes from all commits
Commits
Show all changes
41 commits
Select commit
Hold shift + click to select a range
4b537b6
removed usage of remote_url
TheSlimvReal 3a12b4c
removed database name from config
TheSlimvReal 39dd063
added comments for proxy url
TheSlimvReal 031ee25
removed usages of remote_url for database
TheSlimvReal 3e8e55a
fixed lint error
TheSlimvReal b36e871
Merge remote-tracking branch 'origin/master' into relative-url
TheSlimvReal 6b5b981
removed remote_url from default config
TheSlimvReal 93974ce
removed database name and replaced it by a static value
TheSlimvReal faeca34
removed site_name from config.json and moved it to db config
TheSlimvReal b4f7b06
fixed tests
TheSlimvReal 6f25216
removed session type from config.json and moved it environment or que…
TheSlimvReal 70d87d4
added default env options to prod settings
TheSlimvReal edcfba0
added demo redirect to nginx conf and option to disable it to dockerfile
TheSlimvReal b502680
cleaned up initialization of AppConfig settings and removed old refer…
TheSlimvReal e7f2ff8
fixed tests
TheSlimvReal 150963f
Merge branch 'master' into relative-url
TheSlimvReal aee3697
fix doc styling
TheSlimvReal 6503623
Merge remote-tracking branch 'origin/relative-url' into relative-url
TheSlimvReal 39091ab
disabled port in redirect
TheSlimvReal f8d81d1
fixed typo
TheSlimvReal eb0cca5
better rewriting to use correct port and schema
TheSlimvReal e8d9b1d
using https on default
TheSlimvReal 688cddb
changed try-files clause for language locations
TheSlimvReal 862eb3c
directly navigating to index.html file on language change
TheSlimvReal 1f34781
Merge remote-tracking branch 'origin/master' into relative-url
TheSlimvReal 35a62c1
added automatic demo query params to new nginx config
TheSlimvReal 0ea0c8c
Merge remote-tracking branch 'origin/relative-url' into relative-url
TheSlimvReal 281f97d
files are captured in separate location block
TheSlimvReal 62a6673
enforcing https in rewrite
TheSlimvReal 579dc82
using correct host variable
TheSlimvReal da65aee
added local storage option to preserve query params
TheSlimvReal 90a0273
using permanent rewrite for demo mode
TheSlimvReal 9b407e1
improved documentation
TheSlimvReal db88268
added comment about heroku workaround
TheSlimvReal 1ff29ab
removed webdav references
TheSlimvReal 2ef6fd8
cleaned up demo check in nginx config
TheSlimvReal 13985d3
cleaned up fetching of runtime settings
TheSlimvReal 1532db3
renamed AppConfig to AppSettings
TheSlimvReal 18de486
changed order of config attributes
TheSlimvReal fb3df4b
removed config.default.json
TheSlimvReal 474572e
moved demo_mode and session_type to environment.ts
TheSlimvReal File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
do we have to rewrite to https here or could we just leave it at whatever was used before?
It would make more sense to have a separate block that rewrites any mode to use https (easier to understand if separated - and applying to all modes). But I don't know whether that's doable in nginx, e.g. multiple rewrite blocks applying.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Normally it definitely works the way you are asking for the problem is that it does not work with Heroku. Somehow in there a internal redirect is happening before this one which leads to a wrong URL in this rewrite (in particular loosing the
https
and adding a wrong port). This workaround is not needed for our own servers. There we could just use: