mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 20:26:13 +01:00
Merge pull request #1871 from ywk253100/170330_remove_compressjs
Remove compress js flag
This commit is contained in:
commit
d5cd72479e
@ -33,7 +33,6 @@ UI_SECRET=$ui_secret
|
|||||||
JOBSERVICE_SECRET=$jobservice_secret
|
JOBSERVICE_SECRET=$jobservice_secret
|
||||||
TOKEN_EXPIRATION=$token_expiration
|
TOKEN_EXPIRATION=$token_expiration
|
||||||
CFG_EXPIRATION=5
|
CFG_EXPIRATION=5
|
||||||
USE_COMPRESSED_JS=$use_compressed_js
|
|
||||||
GODEBUG=netdns=cgo
|
GODEBUG=netdns=cgo
|
||||||
ADMIRAL_URL=$admiral_url
|
ADMIRAL_URL=$admiral_url
|
||||||
WITH_NOTARY=$with_notary
|
WITH_NOTARY=$with_notary
|
||||||
|
@ -11,10 +11,6 @@ ui_url_protocol = http
|
|||||||
#The password for the root user of mysql db, change this before any production use.
|
#The password for the root user of mysql db, change this before any production use.
|
||||||
db_password = root123
|
db_password = root123
|
||||||
|
|
||||||
#Determine whether the UI should use compressed js files.
|
|
||||||
#For production, set it to on. For development, set it to off.
|
|
||||||
use_compressed_js = on
|
|
||||||
|
|
||||||
#Maximum number of job workers in job service
|
#Maximum number of job workers in job service
|
||||||
max_job_workers = 3
|
max_job_workers = 3
|
||||||
|
|
||||||
|
@ -138,7 +138,6 @@ ldap_scope = rcp.get("configuration", "ldap_scope")
|
|||||||
ldap_timeout = rcp.get("configuration", "ldap_timeout")
|
ldap_timeout = rcp.get("configuration", "ldap_timeout")
|
||||||
db_password = rcp.get("configuration", "db_password")
|
db_password = rcp.get("configuration", "db_password")
|
||||||
self_registration = rcp.get("configuration", "self_registration")
|
self_registration = rcp.get("configuration", "self_registration")
|
||||||
use_compressed_js = rcp.get("configuration", "use_compressed_js")
|
|
||||||
if protocol == "https":
|
if protocol == "https":
|
||||||
cert_path = rcp.get("configuration", "ssl_cert")
|
cert_path = rcp.get("configuration", "ssl_cert")
|
||||||
cert_key_path = rcp.get("configuration", "ssl_cert_key")
|
cert_key_path = rcp.get("configuration", "ssl_cert_key")
|
||||||
@ -223,8 +222,7 @@ render(os.path.join(templates_dir, "adminserver", "env"),
|
|||||||
jobservice_secret=jobservice_secret,
|
jobservice_secret=jobservice_secret,
|
||||||
token_expiration=token_expiration,
|
token_expiration=token_expiration,
|
||||||
admiral_url=admiral_url,
|
admiral_url=admiral_url,
|
||||||
with_notary=args.notary_mode,
|
with_notary=args.notary_mode
|
||||||
use_compressed_js=use_compressed_js
|
|
||||||
)
|
)
|
||||||
|
|
||||||
render(os.path.join(templates_dir, "ui", "env"),
|
render(os.path.join(templates_dir, "ui", "env"),
|
||||||
|
@ -98,10 +98,6 @@ var (
|
|||||||
env: "TOKEN_EXPIRATION",
|
env: "TOKEN_EXPIRATION",
|
||||||
parse: parseStringToInt,
|
parse: parseStringToInt,
|
||||||
},
|
},
|
||||||
common.UseCompressedJS: &parser{
|
|
||||||
env: "USE_COMPRESSED_JS",
|
|
||||||
parse: parseStringToBool,
|
|
||||||
},
|
|
||||||
common.CfgExpiration: &parser{
|
common.CfgExpiration: &parser{
|
||||||
env: "CFG_EXPIRATION",
|
env: "CFG_EXPIRATION",
|
||||||
parse: parseStringToInt,
|
parse: parseStringToInt,
|
||||||
@ -132,11 +128,6 @@ var (
|
|||||||
env: "MAX_JOB_WORKERS",
|
env: "MAX_JOB_WORKERS",
|
||||||
parse: parseStringToInt,
|
parse: parseStringToInt,
|
||||||
},
|
},
|
||||||
// TODO remove this config?
|
|
||||||
common.UseCompressedJS: &parser{
|
|
||||||
env: "USE_COMPRESSED_JS",
|
|
||||||
parse: parseStringToBool,
|
|
||||||
},
|
|
||||||
common.CfgExpiration: &parser{
|
common.CfgExpiration: &parser{
|
||||||
env: "CFG_EXPIRATION",
|
env: "CFG_EXPIRATION",
|
||||||
parse: parseStringToInt,
|
parse: parseStringToInt,
|
||||||
|
@ -58,7 +58,6 @@ const (
|
|||||||
TokenExpiration = "token_expiration"
|
TokenExpiration = "token_expiration"
|
||||||
CfgExpiration = "cfg_expiration"
|
CfgExpiration = "cfg_expiration"
|
||||||
JobLogDir = "job_log_dir"
|
JobLogDir = "job_log_dir"
|
||||||
UseCompressedJS = "use_compressed_js"
|
|
||||||
AdminInitialPassword = "admin_initial_password"
|
AdminInitialPassword = "admin_initial_password"
|
||||||
AdmiralEndpoint = "admiral_url"
|
AdmiralEndpoint = "admiral_url"
|
||||||
WithNotary = "with_notary"
|
WithNotary = "with_notary"
|
||||||
|
@ -92,7 +92,6 @@ type SystemCfg struct {
|
|||||||
MaxJobWorkers int `json:"max_job_workers"`
|
MaxJobWorkers int `json:"max_job_workers"`
|
||||||
JobLogDir string `json:"job_log_dir"`
|
JobLogDir string `json:"job_log_dir"`
|
||||||
InitialAdminPwd string `json:"initial_admin_pwd,omitempty"`
|
InitialAdminPwd string `json:"initial_admin_pwd,omitempty"`
|
||||||
CompressJS bool `json:"compress_js"` //TODO remove
|
|
||||||
TokenExpiration int `json:"token_expiration"` // in minute
|
TokenExpiration int `json:"token_expiration"` // in minute
|
||||||
SecretKey string `json:"secret_key,omitempty"`
|
SecretKey string `json:"secret_key,omitempty"`
|
||||||
CfgExpiration int `json:"cfg_expiration"`
|
CfgExpiration int `json:"cfg_expiration"`
|
||||||
|
@ -63,7 +63,6 @@ var adminServerLdapTestConfig = map[string]interface{}{
|
|||||||
// config.TokenExpiration: 30,
|
// config.TokenExpiration: 30,
|
||||||
common.CfgExpiration: 5,
|
common.CfgExpiration: 5,
|
||||||
// config.JobLogDir: "/var/log/jobs",
|
// config.JobLogDir: "/var/log/jobs",
|
||||||
// config.UseCompressedJS: true,
|
|
||||||
common.AdminInitialPassword: "password",
|
common.AdminInitialPassword: "password",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -57,7 +57,6 @@ var adminServerDefaultConfig = map[string]interface{}{
|
|||||||
common.MaxJobWorkers: 3,
|
common.MaxJobWorkers: 3,
|
||||||
common.TokenExpiration: 30,
|
common.TokenExpiration: 30,
|
||||||
common.CfgExpiration: 5,
|
common.CfgExpiration: 5,
|
||||||
common.UseCompressedJS: true,
|
|
||||||
common.AdminInitialPassword: "password",
|
common.AdminInitialPassword: "password",
|
||||||
common.AdmiralEndpoint: "http://www.vmware.com",
|
common.AdmiralEndpoint: "http://www.vmware.com",
|
||||||
common.WithNotary: false,
|
common.WithNotary: false,
|
||||||
|
@ -63,7 +63,6 @@ var (
|
|||||||
common.TokenExpiration,
|
common.TokenExpiration,
|
||||||
common.CfgExpiration,
|
common.CfgExpiration,
|
||||||
common.JobLogDir,
|
common.JobLogDir,
|
||||||
common.UseCompressedJS,
|
|
||||||
common.AdminInitialPassword,
|
common.AdminInitialPassword,
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -81,7 +80,6 @@ var (
|
|||||||
common.EmailSSL,
|
common.EmailSSL,
|
||||||
common.SelfRegistration,
|
common.SelfRegistration,
|
||||||
common.VerifyRemoteCert,
|
common.VerifyRemoteCert,
|
||||||
common.UseCompressedJS,
|
|
||||||
}
|
}
|
||||||
|
|
||||||
passwordKeys = []string{
|
passwordKeys = []string{
|
||||||
|
@ -48,7 +48,6 @@ var adminServerLdapTestConfig = map[string]interface{}{
|
|||||||
// config.TokenExpiration: 30,
|
// config.TokenExpiration: 30,
|
||||||
common.CfgExpiration: 5,
|
common.CfgExpiration: 5,
|
||||||
// config.JobLogDir: "/var/log/jobs",
|
// config.JobLogDir: "/var/log/jobs",
|
||||||
// config.UseCompressedJS: true,
|
|
||||||
common.AdminInitialPassword: "password",
|
common.AdminInitialPassword: "password",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user