Skip to content

Instantly share code, notes, and snippets.

@jpmens
Created December 10, 2022 09:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jpmens/215ba45b1207ec0ee7e5b5c3e74909be to your computer and use it in GitHub Desktop.
Save jpmens/215ba45b1207ec0ee7e5b5c3e74909be to your computer and use it in GitHub Desktop.
GoToSocial config patch for txt.udp53.org
--- example/config.yaml 2022-12-06 12:56:56.000000000 +0100
+++ config.yaml 2022-12-09 16:43:13.542513729 +0100
@@ -45,7 +45,7 @@
# DO NOT change this after your server has already run once, or you will break things!
# Examples: ["gts.example.org","some.server.com"]
# Default: "localhost"
-host: "localhost"
+host: "txt.udp53.org"
# String. Domain to use when federating profiles. This is useful when you want your server to be at
# eg., "gts.example.org", but you want the domain on accounts to be "example.org" because it looks better
@@ -90,7 +90,7 @@
# This *MUST NOT* be the same as the letsencrypt port specified below, unless letsencrypt is turned off.
# Examples: [443, 6666, 8080]
# Default: 8080
-port: 8080
+port: 443
# Array of string. CIDRs or IP addresses of proxies that should be trusted when determining real client IP from behind a reverse proxy.
# If you're running inside a Docker container behind Traefik or Nginx, for example, add the subnet of your docker network,
@@ -125,7 +125,7 @@
#
# Examples: ["localhost","my.db.host","127.0.0.1","192.111.39.110",":memory:", "sqlite.db"]
# Default: ""
-db-address: ""
+db-address: "localhost"
# Int. Port for database connection.
# Examples: [5432, 1234, 6969]
@@ -135,17 +135,17 @@
# String. Username for the database connection.
# Examples: ["mydbuser","postgres","gotosocial"]
# Default: ""
-db-user: ""
+db-user: "gts"
# String. Password to use for the database connection
# Examples: ["password123","verysafepassword","postgres"]
# Default: ""
-db-password: ""
+db-password: "<database password>"
# String. Name of the database to use within the provided database type.
# Examples: ["mydb","postgres","gotosocial"]
# Default: "gotosocial"
-db-database: "gotosocial"
+db-database: "gts"
# String. Disable, enable, or require SSL/TLS connection to the database.
# If "disable" then no TLS connection will be attempted.
@@ -228,7 +228,7 @@
# Bool. Do we want people to be able to just submit sign up requests, or do we want invite only?
# Options: [true, false]
# Default: true
-accounts-registration-open: true
+accounts-registration-open: false
# Bool. Do sign up requests require approval from an admin/moderator before an account can sign in/use the server?
# Options: [true, false]
@@ -326,7 +326,7 @@
# 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: "/home/gts/storage"
# String. API endpoint of the S3 compatible service.
# Only required when running with the s3 storage backend.
@@ -373,7 +373,7 @@
# Note that going way higher than the default might break federation.
# Examples: [140, 500, 5000]
# Default: 5000
-statuses-max-chars: 5000
+statuses-max-chars: 1000
# Int. Maximum amount of characters allowed in the CW/subject header of a status.
# Note that going way higher than the default might break federation.
@@ -411,7 +411,7 @@
# If you don't, then turn it on so that you can use https.
# Options: [true, false]
# Default: false
-letsencrypt-enabled: false
+letsencrypt-enabled: true
# Int. Port to listen for letsencrypt certificate challenges on.
# If letsencrypt is enabled, this port must be reachable or you won't be able to obtain certs.
@@ -427,14 +427,14 @@
# 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: "/home/gts/storage/certs"
# String. Email address to use when registering LetsEncrypt certs.
# Most likely, this will be the email address of the instance administrator.
# LetsEncrypt will send notifications about expiring certificates etc to this address.
# Examples: ["admin@example.org"]
# Default: ""
-letsencrypt-email-address: ""
+letsencrypt-email-address: "<my email address>"
#######################
##### OIDC CONFIG #####
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment