diff --git a/Dockerfile b/Dockerfile index c4ba403ad56da9aaec0233a3b172747849bd8006..2a2bd8b91588d3e06a3baa7f26d1e7535d9c9066 100644 --- a/Dockerfile +++ b/Dockerfile @@ -18,7 +18,7 @@ ENTRYPOINT (cd $APP_DIR && ./src/cve-manager) ADD . $APP_DIR # Compile the binary and statically link -RUN cd $APP_DIR && CGO_ENABLED=0 godep go build -ldflags '-d -w -s' +#RUN cd $APP_DIR && CGO_ENABLED=0 godep go build -ldflags '-d -w -s' EXPOSE 80 diff --git a/conf/app.conf b/conf/app.conf index d91af5d5488325dee30d10e50421962af0ff949e..6269b3207880f71e8c932c0445511e803cc2d134 100644 --- a/conf/app.conf +++ b/conf/app.conf @@ -42,19 +42,19 @@ maxsize=304800 [crontab] ymalflag = 2 -getymal = 00 00 23 * * * +getymal = 00 00 02 * * * cveflag = 2 -getcve = 00 00 01 * * * +getcve = 00 00 03 * * * oricveflag = 2 -oricvecheck = 00 00 02 * * * +oricvecheck = 00 00 05 * * * getissueflag = 2 -getissue = 00 00 03 * * * +getissue = 00 00 05 * * * issueflag = 2 -createissue = * * 01 * * * +createissue = * * 05 * * * test = 0/10 * * * * * gittokenflag = 1 issueoath = * * */20 * * * -genexcelflag = 2 +genexcelflag = 7 genexcel = 00 00 04 * * * days = -30 prcnum = 100 diff --git a/conf/product_app.conf b/conf/product_app.conf index f070c48cf2cecd052c417ded766e718d7419619d..b87c6974742fde808bc404bfd66e4efed57bde4e 100644 --- a/conf/product_app.conf +++ b/conf/product_app.conf @@ -1,5 +1,5 @@ appname = cve_manager -httpport = 80 +httpport = 8080 runmode = dev autorender = false copyrequestbody = true @@ -23,7 +23,7 @@ labelUnFix = "CVE/UNFIX" [mysql] -dbhost = fafd55e8084b402d9998539b072eef7fin01.internal.ap-southeast-1.mysql.rds.myhuaweicloud.com +dbhost = 172.16.1.73 dbport = 3306 dbuser = "${DB_USER||cve}" dbpwd = "${DB_PWD||***}" @@ -41,24 +41,24 @@ maxlines=50000 maxsize=304800 [crontab] -ymalflag = 1 -getymal = 00 00 23 * * * +ymalflag = 2 +getymal = 00 00 02 * * * cveflag = 2 -getcve = 00 00 01 * * * +getcve = 00 00 03 * * * oricveflag = 2 -oricvecheck = 00 00 02 * * * +oricvecheck = 00 00 05 * * * getissueflag = 2 -getissue = 00 00 03 * * * +getissue = 00 00 05 * * * issueflag = 2 -createissue = * * 01 * * * +createissue = * * 05 * * * test = 0/10 * * * * * gittokenflag = 1 issueoath = * * */20 * * * -genexcelflag = 2 +genexcelflag = 7 genexcel = 00 00 04 * * * days = -30 prcnum = 100 -printlogflag = 2 +printlogflag = 1 printlog = 0 */10 * * * * @@ -66,7 +66,7 @@ printlog = 0 */10 * * * * owner = src-openeuler path = jasper email = 7844966+zhangjianjun_code@user.noreply.gitee.com -redirect_uri = http://159.138.2.2:80/v1/issue/oauth/callback +#redirect_uri = https://api.openeuler.org/cve-manager/v1/issue/oauth/callback scope = user_info projects pull_requests issues notes keys hook groups gists enterprises emails # Obtain first from the system environment variables, use the default value if it fails **** @@ -79,7 +79,7 @@ git_token = "${GITEE_TOKEN||xxx}" [hook] hookpwd = "${HOOK_PWD||***}" -hookurl = http://159.138.2.2:80/v1/issue/hook/event +hookurl = https://api.openeuler.org/cve-manager/v1/issue/hook/event