Browse Source

abstruse add missing source files

Signed-off-by: pipelinebuilder_pel7ppc64lebuilder0 <pipelinebuilder@powerel.org>
master
pipelinebuilder_pel7ppc64lebuilder0 2 years ago
parent
commit
0983cdd657
  1. 11
      SOURCES/abstruse-postgres-ssl.patch
  2. 10
      SOURCES/abstruse-protoc-import.patch
  3. 10
      SOURCES/abstruse-server.env
  4. 12
      SOURCES/abstruse-server.service
  5. 5
      SOURCES/abstruse-worker.env
  6. 12
      SOURCES/abstruse-worker@.service

11
SOURCES/abstruse-postgres-ssl.patch

@ -0,0 +1,11 @@ @@ -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:

10
SOURCES/abstruse-protoc-import.patch

@ -0,0 +1,10 @@ @@ -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";

10
SOURCES/abstruse-server.env

@ -0,0 +1,10 @@ @@ -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

12
SOURCES/abstruse-server.service

@ -0,0 +1,12 @@ @@ -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

5
SOURCES/abstruse-worker.env

@ -0,0 +1,5 @@ @@ -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

12
SOURCES/abstruse-worker@.service

@ -0,0 +1,12 @@ @@ -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…
Cancel
Save