gtsocial-umbx

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs | README | LICENSE

general.md (4772B)


      1 # General
      2 
      3 The top-level configuration for GoToSocial, including basic things like host, port, bind address and transport protocol.
      4 
      5 The only things you *really* need to set here are `host`, which should be the hostname where your instance is reachable, and probably `port`.
      6 
      7 ## Settings
      8 
      9 ```yaml
     10 ###########################
     11 ##### GENERAL CONFIG ######
     12 ###########################
     13 
     14 # String. Log level to use throughout the application. Must be lower-case.
     15 # Options: ["trace","debug","info","warn","error","fatal"]
     16 # Default: "info"
     17 log-level: "info"
     18 
     19 # Bool. Log database queries when log-level is set to debug or trace.
     20 # This setting produces verbose logs, so it's better to only enable it
     21 # when you're trying to track an issue down.
     22 # Options: [true, false]
     23 # Default: false
     24 log-db-queries: false
     25 
     26 # String. Application name to use internally.
     27 # Examples: ["My Application","gotosocial"]
     28 # Default: "gotosocial"
     29 application-name: "gotosocial"
     30 
     31 # String. Hostname that this server will be reachable at. Defaults to localhost for local testing,
     32 # but you should *definitely* change this when running for real, or your server won't work at all.
     33 # DO NOT change this after your server has already run once, or you will break things!
     34 # Examples: ["gts.example.org","some.server.com"]
     35 # Default: "localhost"
     36 host: "localhost"
     37 
     38 # String. Domain to use when federating profiles. This is useful when you want your server to be at
     39 # eg., "gts.example.org", but you want the domain on accounts to be "example.org" because it looks better
     40 # or is just shorter/easier to remember.
     41 #
     42 # To make this setting work properly, you need to redirect requests at "example.org/.well-known/webfinger"
     43 # to "gts.example.org/.well-known/webfinger" so that GtS can handle them properly.
     44 #
     45 # You should also redirect requests at "example.org/.well-known/nodeinfo" in the same way.
     46 #
     47 # You should also redirect requests at "example.org/.well-known/host-meta" in the same way. This endpoint is used by a number of clients to discover the API endpoint to use when the host and account domain are different.
     48 #
     49 # An empty string (ie., not set) means that the same value as 'host' will be used.
     50 #
     51 # DO NOT change this after your server has already run once, or you will break things!
     52 #
     53 # Please read the appropriate section of the installation guide before you go messing around with this setting:
     54 # https://docs.gotosocial.org/installation_guide/advanced/#can-i-host-my-instance-at-fediexampleorg-but-have-just-exampleorg-in-my-username
     55 #
     56 # Examples: ["example.org","server.com"]
     57 # Default: ""
     58 account-domain: ""
     59 
     60 # String. Protocol to use for the server. Only change to http for local testing!
     61 # This should be the protocol part of the URI that your server is actually reachable on. So even if you're
     62 # running GoToSocial behind a reverse proxy that handles SSL certificates for you, instead of using built-in
     63 # letsencrypt, it should still be https.
     64 # Options: ["http","https"]
     65 # Default: "https"
     66 protocol: "https"
     67 
     68 # String. Address to bind the GoToSocial server to.
     69 # This can be an IPv4 address or an IPv6 address (surrounded in square brackets), or a hostname.
     70 # The default value will bind to all interfaces, which makes the server
     71 # accessible by other machines. For most setups there is no need to change this.
     72 # If you are using GoToSocial in a reverse proxy setup with the proxy running on
     73 # the same machine, you will want to set this to "localhost" or an equivalent,
     74 # so that the proxy can't be bypassed.
     75 # Examples: ["0.0.0.0", "172.128.0.16", "localhost", "[::]", "[2001:db8::fed1]"]
     76 # Default: "0.0.0.0"
     77 bind-address: "0.0.0.0"
     78 
     79 # Int. Listen port for the GoToSocial webserver + API. If you're running behind a reverse proxy and/or in a docker,
     80 # container, just set this to whatever you like (or leave the default), and make sure it's forwarded properly.
     81 # If you are running with built-in letsencrypt enabled, and running GoToSocial directly on a host machine, you will
     82 # probably want to set this to 443 (standard https port), unless you have other services already using that port.
     83 # This *MUST NOT* be the same as the letsencrypt port specified below, unless letsencrypt is turned off.
     84 # Examples: [443, 6666, 8080]
     85 # Default: 8080
     86 port: 8080
     87 
     88 # Array of string. CIDRs or IP addresses of proxies that should be trusted when determining real client IP from behind a reverse proxy.
     89 # If you're running inside a Docker container behind Traefik or Nginx, for example, add the subnet of your docker network,
     90 # or the gateway of the docker network, and/or the address of the reverse proxy (if it's not running on the host network).
     91 # Example: ["127.0.0.1/32", "172.20.0.1"]
     92 # Default: ["127.0.0.1/32", "::1"] (localhost ipv4 + ipv6)
     93 trusted-proxies:
     94   - "127.0.0.1/32"
     95   - "::1"
     96 ```