summarylogtreecommitdiffstats
path: root/use-fhs-directories.patch
blob: e629fe997ca2de8dc2ed479ba8e9c5a05938fc69 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
--- a/example/config.yaml
+++ b/example/config.yaml
@@ -97,7 +97,7 @@ trusted-proxies:
 # String. Database type.
 # Options: ["postgres","sqlite"]
 # Default: "postgres"
-db-type: "postgres"
+db-type: "sqlite"
 
 # String. Database address or parameters.
 #
@@ -112,7 +112,7 @@ db-type: "postgres"
 #
 # Examples: ["localhost","my.db.host","127.0.0.1","192.111.39.110",":memory:", "sqlite.db"]
 # Default: ""
-db-address: ""
+db-address: "/var/lib/gotosocial/sqlite.db"
 
 # Int. Port for database connection.
 # Examples: [5432, 1234, 6969]
@@ -158,12 +158,12 @@ db-tls-ca-cert: ""
 # 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: "/etc/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: "/usr/share/gotosocial"
 
 ###########################
 ##### INSTANCE CONFIG #####
@@ -261,7 +261,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.
@@ -357,7 +357,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.
--- a/example/gotosocial.service
+++ b/example/gotosocial.service
@@ -14,8 +14,8 @@ Type=exec
 Restart=on-failure
 
 # change if your path to the GoToSocial binary is different
-ExecStart=/gotosocial/gotosocial --config-path config.yaml server start
-WorkingDirectory=/gotosocial
+ExecStart=/usr/bin/gotosocial --config-path /etc/gotosocial/config.yaml server start
+WorkingDirectory=/var/lib/gotosocial
 
 StandardOutput=append:/var/log/gotosocial/gotosocial.log
 StandardError=inherit