mirror of
https://github.com/caprover/caprover
synced 2026-05-03 18:20:32 +00:00
Added redirect to specific domain https://github.com/caprover/caprover/issues/314 (#1744)
This commit is contained in:
@@ -615,6 +615,7 @@ class AppsDataStore {
|
||||
repoInfo: RepoInfo,
|
||||
authenticator: Authenticator,
|
||||
customNginxConfig: string,
|
||||
redirectDomain: string,
|
||||
preDeployFunction: string,
|
||||
serviceUpdateOverride: string,
|
||||
websocketSupport: boolean,
|
||||
@@ -689,6 +690,7 @@ class AppsDataStore {
|
||||
appObj.websocketSupport = !!websocketSupport
|
||||
appObj.nodeId = nodeId
|
||||
appObj.customNginxConfig = customNginxConfig
|
||||
appObj.redirectDomain = redirectDomain
|
||||
appObj.preDeployFunction = preDeployFunction
|
||||
appObj.serviceUpdateOverride = serviceUpdateOverride
|
||||
appObj.description = description
|
||||
@@ -887,6 +889,7 @@ class AppsDataStore {
|
||||
notExposeAsWebApp: false,
|
||||
customDomain: [],
|
||||
hasDefaultSubDomainSsl: false,
|
||||
redirectDomain: '',
|
||||
forceSsl: false,
|
||||
websocketSupport: false,
|
||||
}
|
||||
|
||||
@@ -67,6 +67,7 @@ interface IAppDefinitionBase {
|
||||
preDeployFunction?: string
|
||||
serviceUpdateOverride?: string
|
||||
customNginxConfig?: string
|
||||
redirectDomain?: string
|
||||
networks: string[]
|
||||
customDomain: IAppCustomDomain[]
|
||||
tags?: IAppTag[]
|
||||
|
||||
@@ -327,6 +327,7 @@ router.post('/update/', function (req, res, next) {
|
||||
const volumes = req.body.volumes || []
|
||||
const ports = req.body.ports || []
|
||||
const instanceCount = req.body.instanceCount || '0'
|
||||
const redirectDomain = req.body.redirectDomain || ''
|
||||
const preDeployFunction = req.body.preDeployFunction || ''
|
||||
const serviceUpdateOverride = req.body.serviceUpdateOverride || ''
|
||||
const containerHttpPort = Number(req.body.containerHttpPort) || 80
|
||||
@@ -399,6 +400,7 @@ router.post('/update/', function (req, res, next) {
|
||||
ports,
|
||||
repoInfo,
|
||||
customNginxConfig,
|
||||
redirectDomain,
|
||||
preDeployFunction,
|
||||
serviceUpdateOverride,
|
||||
websocketSupport,
|
||||
|
||||
@@ -652,6 +652,7 @@ class ServiceManager {
|
||||
ports: IAppPort[],
|
||||
repoInfo: RepoInfo,
|
||||
customNginxConfig: string,
|
||||
redirectDomain: string,
|
||||
preDeployFunction: string,
|
||||
serviceUpdateOverride: string,
|
||||
websocketSupport: boolean,
|
||||
@@ -773,6 +774,7 @@ class ServiceManager {
|
||||
repoInfo,
|
||||
self.authenticator,
|
||||
customNginxConfig,
|
||||
redirectDomain,
|
||||
preDeployFunction,
|
||||
serviceUpdateOverride,
|
||||
websocketSupport,
|
||||
|
||||
@@ -337,6 +337,7 @@ export default class MigrateCaptainDuckDuck {
|
||||
repoInfo,
|
||||
self.authenticator,
|
||||
app.customNginxConfig,
|
||||
'',
|
||||
app.preDeployFunction,
|
||||
'',
|
||||
false,
|
||||
|
||||
Reference in New Issue
Block a user