Skip to content

Commit a1eaf35

Browse files
authored
add information on DISABLE_REGISTRATION
1 parent 3c8d0fb commit a1eaf35

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

pages/configuration/reference.mdx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,16 @@ eg: `http://postiz.example.lan:3000`
3636

3737
If running everything in the same host/container: `http://localhost:3000`
3838

39+
## Optional settings
40+
41+
Refer to the [example postiz.env file](https://raw.githubusercontent.com/gitroomhq/postiz-app/main/.env.example) for additional configuration options.
42+
43+
### DISABLE_REGISTRATION
44+
45+
eg: `true`
46+
47+
This will only allow a single user registration, and then after that the sign-up page will be disabled. Useful for self-hosting where you want complete control over users.
48+
3949
## Social Media keys
4050

4151
See the "providers" section of the documentation for the provider you want to configure,

pages/installation/docker-compose.mdx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@ services:
4949
REDIS_URL: "redis://postiz-redis:6379"
5050
BACKEND_INTERNAL_URL: "http://localhost:3000"
5151
IS_GENERAL: "true" # Required for self-hosting.
52+
DISABLE_REGISTRATION: "true" # Only allow single registration, then disable signup
5253
# The container images are pre-configured to use /uploads for file storage.
5354
# You probably should not change this unless you have a really good reason!
5455
STORAGE_PROVIDER: "local"

0 commit comments

Comments
 (0)