-
Notifications
You must be signed in to change notification settings - Fork 11k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2624 from RocketChat/r0p0s3c/develop
Fixups to allow running out of subdirectory
- Loading branch information
Showing
17 changed files
with
104 additions
and
80 deletions.
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
22 changes: 14 additions & 8 deletions
22
packages/rocketchat-lib/lib/startup/settingsOnLoadSiteUrl.coffee
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,23 @@ | ||
if Meteor.isServer | ||
url = Npm.require('url') | ||
|
||
RocketChat.settings.get 'Site_Url', (key, value) -> | ||
if value?.trim() isnt '' | ||
__meteor_runtime_config__.ROOT_URL = value | ||
host = value.replace(/\/$/, '') | ||
prefix = "" | ||
match = value.match(/([^/]+\/{2}[^/]+)(\/.+)/) | ||
if match? | ||
host = match[1] | ||
prefix = match[2].replace(/\/$/, '') | ||
|
||
__meteor_runtime_config__.ROOT_URL = host | ||
__meteor_runtime_config__.ROOT_URL_PATH_PREFIX = prefix | ||
__meteor_runtime_config__.DDP_DEFAULT_CONNECTION_URL = host | ||
|
||
if Meteor.absoluteUrl.defaultOptions?.rootUrl? | ||
Meteor.absoluteUrl.defaultOptions.rootUrl = value | ||
Meteor.absoluteUrl.defaultOptions.rootUrl = host | ||
|
||
if Meteor.isServer | ||
RocketChat.hostname = url.parse(value).hostname | ||
RocketChat.hostname = host | ||
|
||
process.env.MOBILE_ROOT_URL = value | ||
process.env.MOBILE_DDP_URL = value | ||
process.env.MOBILE_ROOT_URL = host | ||
process.env.MOBILE_DDP_URL = host | ||
if WebAppInternals?.generateBoilerplate | ||
WebAppInternals.generateBoilerplate() |
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
2 changes: 1 addition & 1 deletion
2
packages/rocketchat-mentions-flextab/client/views/stylesheets/mentionsFlexTab.less
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
<template name="audioNotification"> | ||
<audio id="chatAudioNotification" preload> | ||
<source src="/sounds/notify.ogg" type="audio/ogg" /> | ||
<source src="/sounds/notify.mp3" type="audio/mpeg" /> | ||
<source src="sounds/notify.ogg" type="audio/ogg" /> | ||
<source src="sounds/notify.mp3" type="audio/mpeg" /> | ||
</audio> | ||
<audio id="chatNewRoomNotification" preload> | ||
<source src="/sounds/door_chime.mp3" type="audio/mpeg" /> | ||
<source src="sounds/door_chime.mp3" type="audio/mpeg" /> | ||
</audio> | ||
</template> |
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