Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions srcpkgs/gotosocial/INSTALL
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
case "${ACTION}" in
post)
chown -R _gotosocial:_gotosocial srv/www/gotosocial/*
;;
esac
4 changes: 4 additions & 0 deletions srcpkgs/gotosocial/files/gotosocial/run
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
exec 2>&1
exec chpst -u _gotosocial:_gotosocial \
gotosocial --config-path /etc/gotosocial/config.yaml server start
55 changes: 55 additions & 0 deletions srcpkgs/gotosocial/patches/config.yaml.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
diff --git a/example/config.yaml b/example/config.yaml
index 5c284b058..573f8259c 100644
--- a/example/config.yaml
+++ b/example/config.yaml
@@ -172,7 +172,7 @@ db-type: "sqlite"
#
# Examples: ["localhost","my.db.host","127.0.0.1","192.111.39.110",":memory:", "sqlite.db"]
# Default: ""
-db-address: "sqlite.db"
+db-address: "/var/lib/gotosocial/sqlite.db"

# Int. Port for postgres database connection; ignored for sqlite.
# Examples: [5432, 1234, 6969]
@@ -274,7 +274,7 @@ db-sqlite-busy-timeout: "30m"
# String. Full Database connection string
#
# This connection string is only applicable for Postgres. When this field is defined, all other database related configuration field will be ignored. This field allow you to fine tune connection with Postgres
-#
+#
# Examples: ["postgres://user:pass@localhost/db?search_path=gotosocial", "postgres://user:pass@localhost:9999/db"]
# Default: ""
db-postgres-connection-string: ""
@@ -344,12 +344,12 @@ cache:
# String. Directory from which gotosocial will attempt to load html templates (.tmpl files).
# Examples: ["/some/absolute/path/", "./relative/path/", "../../some/weird/path/"]
# Default: "./web/template/"
-web-template-base-dir: "./web/template/"
+web-template-base-dir: "/srv/www/gotosocial/template/"

# String. Directory from which gotosocial will attempt to serve static web assets (images, scripts).
# Examples: ["/some/absolute/path/", "./relative/path/", "../../some/weird/path/"]
# Default: "./web/assets/"
-web-asset-base-dir: "./web/assets/"
+web-asset-base-dir: "/srv/www/gotosocial/assets/"

###########################
##### INSTANCE CONFIG #####
@@ -792,7 +792,7 @@ storage-backend: "local"
# Only required when running with the local storage backend.
# Examples: ["/home/gotosocial/storage", "/opt/gotosocial/datastorage"]
# Default: "/gotosocial/storage"
-storage-local-base-path: "/gotosocial/storage"
+storage-local-base-path: "/var/lib/gotosocial/storage"

# String. API endpoint of the S3 compatible service.
# Only required when running with the s3 storage backend.
@@ -955,7 +955,7 @@ letsencrypt-port: 80
# In any case, make sure GoToSocial has permissions to write to / read from this directory.
# Examples: ["/home/gotosocial/storage/certs", "/acmecerts"]
# Default: "/gotosocial/storage/certs"
-letsencrypt-cert-dir: "/gotosocial/storage/certs"
+letsencrypt-cert-dir: "/var/lib/gotosocial/storage/certs"

# String. Email address to use when registering LetsEncrypt certs.
# Most likely, this will be the email address of the instance administrator.
Loading