mirror of
https://github.com/Abdulazizzn/n8n-enterprise-unlocked.git
synced 2025-12-16 17:46:45 +00:00
fix(core): Update frontend urls when using the --tunnel option (#6898)
fix(core): update frontend urls when using the `--tunnel` option
This commit is contained in:
committed by
GitHub
parent
d71af4059b
commit
718e61354d
@@ -404,6 +404,15 @@ export class Server extends AbstractServer {
|
|||||||
* Returns the current settings for the frontend
|
* Returns the current settings for the frontend
|
||||||
*/
|
*/
|
||||||
getSettingsForFrontend(): IN8nUISettings {
|
getSettingsForFrontend(): IN8nUISettings {
|
||||||
|
// Update all urls, in case `WEBHOOK_URL` was updated by `--tunnel`
|
||||||
|
const instanceBaseUrl = getInstanceBaseUrl();
|
||||||
|
this.frontendSettings.urlBaseWebhook = WebhookHelpers.getWebhookBaseUrl();
|
||||||
|
this.frontendSettings.urlBaseEditor = instanceBaseUrl;
|
||||||
|
this.frontendSettings.oauthCallbackUrls = {
|
||||||
|
oauth1: `${instanceBaseUrl}/${this.restEndpoint}/oauth1-credential/callback`,
|
||||||
|
oauth2: `${instanceBaseUrl}/${this.restEndpoint}/oauth2-credential/callback`,
|
||||||
|
};
|
||||||
|
|
||||||
// refresh user management status
|
// refresh user management status
|
||||||
Object.assign(this.frontendSettings.userManagement, {
|
Object.assign(this.frontendSettings.userManagement, {
|
||||||
quota: Container.get(License).getUsersLimit(),
|
quota: Container.get(License).getUsersLimit(),
|
||||||
|
|||||||
Reference in New Issue
Block a user