mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-29 04:52:24 -05:00
Remove unnecessary storage config variables (#344)
* rewire config to not use extraneous serve vars * rename 'file' to 'local' for consistency * use Type and Size again
This commit is contained in:
parent
2582515b4d
commit
cb8688f429
51 changed files with 310 additions and 408 deletions
|
|
@ -20,25 +20,5 @@ storage-backend: "local"
|
|||
# this directly, and create new subdirectories and files with in.
|
||||
# Examples: ["/home/gotosocial/storage", "/opt/gotosocial/datastorage"]
|
||||
# Default: "/gotosocial/storage"
|
||||
storage-base-path: "/gotosocial/storage"
|
||||
|
||||
# String. Protocol to use for serving stored files.
|
||||
# It's very unlikely that you'll need to change this ever, but there might be edge cases.
|
||||
# Examples: ["http", "https"]
|
||||
storage-serve-protocol: "https"
|
||||
|
||||
# String. Host for serving stored files.
|
||||
# If you're using local storage, this should be THE SAME as the value you've set for Host, above.
|
||||
# It should only be a different value if you're serving stored files from a host
|
||||
# other than the one your instance is running on.
|
||||
# Examples: ["localhost", "example.org"]
|
||||
# Default: "localhost" -- you should absolutely change this.
|
||||
storage-serve-host: "localhost"
|
||||
|
||||
# String. Base path for serving stored files. This will be added to serveHost and serveProtocol
|
||||
# to form the prefix url of your stored files. Eg., https://example.org/fileserver/.....
|
||||
# It's unlikely that you will need to change this.
|
||||
# Examples: ["/fileserver", "/media"]
|
||||
# Default: "/fileserver"
|
||||
storage-serve-base-path: "/fileserver"
|
||||
storage-local-base-path: "/gotosocial/storage"
|
||||
```
|
||||
|
|
|
|||
|
|
@ -48,11 +48,10 @@ Now open the file in your text editor of choice so that you can set some importa
|
|||
|
||||
* Set `host` to whatever hostname you're going to be running the server on (eg., `example.org`).
|
||||
* Set `port` to `443`.
|
||||
* Set `db.type` to `sqlite`.
|
||||
* Set `db.address` to `sqlite.db`.
|
||||
* Set `storage.basePath` to the storage directory you created above (eg., `/gotosocial/storage`).
|
||||
* Set `storage.serveHost` to whatever you set the `host` value to above (eg., `example.org`).
|
||||
* Set `letsEncrypt.certDir` to the certificate storage directory you created above (eg., `/gotosocial/storage/certs`).
|
||||
* Set `db-type` to `sqlite`.
|
||||
* Set `db-address` to `sqlite.db`.
|
||||
* Set `storage-local-base-path` to the storage directory you created above (eg., `/gotosocial/storage`).
|
||||
* Set `letsencrypt-cert-dir` to the certificate storage directory you created above (eg., `/gotosocial/storage/certs`).
|
||||
|
||||
The above options assume you're using SQLite as your database. If you want to use Postgres instead, see [here](../configuration/database.md) for the config options.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue