diff options
| author | 2022-11-15 16:53:19 +0100 | |
|---|---|---|
| committer | 2022-11-15 16:53:19 +0100 | |
| commit | 1f256e288b876fcd58093068150e0542acc82b32 (patch) | |
| tree | 0af518fa106a81d5b987f16a8dbd71fd2ad09a53 /internal/config/testdata/test.json | |
| parent | [bugfix] Fix unicode-unaware word boundary check in hashtags (#1049) (diff) | |
| download | gotosocial-1f256e288b876fcd58093068150e0542acc82b32.tar.xz | |
[chore] refactor test/cliparsing.sh into a go test below internal/config (#1036)
Also adds AddGlobalFlags and AddServerFlags as methods on ConfigState,
very useful for testing.
Diffstat (limited to 'internal/config/testdata/test.json')
| -rw-r--r-- | internal/config/testdata/test.json | 60 |
1 files changed, 60 insertions, 0 deletions
diff --git a/internal/config/testdata/test.json b/internal/config/testdata/test.json new file mode 100644 index 000000000..9bbedd36a --- /dev/null +++ b/internal/config/testdata/test.json @@ -0,0 +1,60 @@ +{ + "account-domain": "example.org", + "accounts-approval-required": true, + "accounts-reason-required": true, + "accounts-registration-open": true, + "application-name": "gotosocial", + "bind-address": "0.0.0.0", + "config-path": "testdata/test.json", + "db-address": "127.0.0.1", + "db-database": "postgres", + "db-password": "postgres", + "db-port": 5432, + "db-tls-ca-cert": "", + "db-tls-mode": "disable", + "db-type": "postgres", + "db-user": "postgres", + "host": "gts.example.org", + "letsencrypt-cert-dir": "/gotosocial/storage/certs", + "letsencrypt-email-address": "", + "letsencrypt-enabled": true, + "letsencrypt-port": 80, + "log-level": "info", + "media-description-max-chars": 500, + "media-description-min-chars": 0, + "media-image-max-size": 10485760, + "media-video-max-size": 41943040, + "oidc-client-id": "", + "oidc-client-secret": "", + "oidc-enabled": false, + "oidc-idp-name": "", + "oidc-issuer": "", + "oidc-scopes": [ + "openid", + "email", + "profile", + "groups" + ], + "oidc-skip-verification": false, + "port": 8080, + "protocol": "https", + "smtp-from": "someone@example.org", + "smtp-host": "verycoolemailhost.mail", + "smtp-password": "smtp-password", + "smtp-port": 8888, + "smtp-username": "smtp-username", + "software-version": "", + "statuses-cw-max-chars": 100, + "statuses-max-chars": 5000, + "statuses-media-max-files": 6, + "statuses-poll-max-options": 6, + "statuses-poll-option-max-chars": 50, + "storage-backend": "local", + "storage-local-base-path": "/gotosocial/storage", + "trusted-proxies": [ + "127.0.0.1/32", + "0.0.0.0/0" + ], + "web-asset-base-dir": "./web/assets/", + "web-template-base-dir": "./web/template/" +} |
