diff --git a/SOURCES/abstruse-postgres-ssl.patch b/SOURCES/abstruse-postgres-ssl.patch new file mode 100644 index 0000000..7b66556 --- /dev/null +++ b/SOURCES/abstruse-postgres-ssl.patch @@ -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: diff --git a/SOURCES/abstruse-protoc-import.patch b/SOURCES/abstruse-protoc-import.patch new file mode 100644 index 0000000..0a70a5f --- /dev/null +++ b/SOURCES/abstruse-protoc-import.patch @@ -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"; + diff --git a/SOURCES/abstruse-server.env b/SOURCES/abstruse-server.env new file mode 100644 index 0000000..6125cc5 --- /dev/null +++ b/SOURCES/abstruse-server.env @@ -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 diff --git a/SOURCES/abstruse-server.service b/SOURCES/abstruse-server.service new file mode 100644 index 0000000..6f8998b --- /dev/null +++ b/SOURCES/abstruse-server.service @@ -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 diff --git a/SOURCES/abstruse-worker.env b/SOURCES/abstruse-worker.env new file mode 100644 index 0000000..e9aa059 --- /dev/null +++ b/SOURCES/abstruse-worker.env @@ -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 diff --git a/SOURCES/abstruse-worker@.service b/SOURCES/abstruse-worker@.service new file mode 100644 index 0000000..71c4e07 --- /dev/null +++ b/SOURCES/abstruse-worker@.service @@ -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