abstruse add missing source files
Signed-off-by: pipelinebuilder_pel7ppc64lebuilder0 <pipelinebuilder@powerel.org>master
parent
d0544d0078
commit
0983cdd657
|
@ -0,0 +1,11 @@
|
|||
--- src/github.com/bleenco/abstruse/server/store/store.go 2021-05-08 00:47:35.252691767 +0200
|
||||
+++ src/github.com/bleenco/abstruse/server/store/store.go 2021-05-08 00:48:00.203334052 +0200
|
||||
@@ -96,7 +96,7 @@
|
||||
case "mssql":
|
||||
return fmt.Sprintf("sqlserver://%s%s:%d?database=%s", credentials(cfg), cfg.Host, cfg.Port, cfg.Name)
|
||||
case "postgres", "postgresql":
|
||||
- return fmt.Sprintf("host=%s port=%d user=%s dbname=%s password=%s", cfg.Host, cfg.Port, cfg.User, cfg.Name, cfg.Password)
|
||||
+ return fmt.Sprintf("host=%s port=%d user=%s dbname=%s password=%s sslmode=disable", cfg.Host, cfg.Port, cfg.User, cfg.Name, cfg.Password)
|
||||
case "sqlite", "sqlite3":
|
||||
return cfg.Name
|
||||
default:
|
|
@ -0,0 +1,10 @@
|
|||
--- src/github.com/bleenco/abstruse/pb/api.proto 2021-05-07 22:06:09.073510422 +0200
|
||||
+++ src/github.com/bleenco/abstruse/pb/api.proto 2021-05-07 22:06:34.184156284 +0200
|
||||
@@ -1,6 +1,6 @@
|
||||
syntax = "proto3";
|
||||
package api;
|
||||
-option go_package = ".;api";
|
||||
+option go_package = "./;api";
|
||||
|
||||
import "google/protobuf/empty.proto";
|
||||
|
|
@ -0,0 +1,10 @@
|
|||
ABSTRUSE_HTTP_ADDR=0.0.0.0:8080
|
||||
ABSTRUSE_HTTP_COMPRESS=true
|
||||
ABSTRUSE_WEBSOCKET_ADDR=localhost:2220
|
||||
ABSTRUSE_AUTH_JWTSECRET=$JWTSECRET
|
||||
ABSTRUSE_DB_DRIVER=postgres
|
||||
ABSTRUSE_DB_HOST=localhost
|
||||
ABSTRUSE_DB_PORT=5432
|
||||
ABSTRUSE_DB_USER=postgres
|
||||
ABSTRUSE_DB_PASSWORD=
|
||||
ABSTRUSE_DB_NAME=abstrusedb
|
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=Abstruse Server
|
||||
After=postgresql.service mysql.service mariadb.service network.service
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
Restart=on-failure
|
||||
EnvironmentFile=/etc/abstruse/server
|
||||
ExecStart=/usr/bin/abstruse-server
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
|
@ -0,0 +1,5 @@
|
|||
ABSTRUSE_ID=WORKERID0000
|
||||
ABSTRUSE_GRPC_ADDR=0.0.0.0:3330
|
||||
ABSTRUSE_AUTH_JWTSECRET=$JWTSECRET
|
||||
ABSTRUSE_SERVER_ADDR=http://0.0.0.0:8080
|
||||
ABSTRUSE_SCHEDULER_MAXPARALLEL=4
|
|
@ -0,0 +1,12 @@
|
|||
[Unit]
|
||||
Description=Abstruse Worker
|
||||
After=network.service
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
Restart=on-failure
|
||||
EnvironmentFile=/etc/abstruse/worker-%i
|
||||
ExecStart=/usr/bin/abstruse-worker
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue