Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
conduwuit
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
🥺
conduwuit
Commits
023c16e4
Commit
023c16e4
authored
1 year ago
by
🥺
Committed by
🥺
1 year ago
Browse files
Options
Downloads
Patches
Plain Diff
specify if registration token is set in show-config
Signed-off-by:
strawberry
<
strawberry@puppygock.gay
>
parent
d1b919ed
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
conduwuit-example.toml
+1
-1
1 addition, 1 deletion
conduwuit-example.toml
src/config/mod.rs
+10
-3
10 additions, 3 deletions
src/config/mod.rs
with
11 additions
and
4 deletions
conduwuit-example.toml
+
1
−
1
View file @
023c16e4
...
@@ -126,7 +126,7 @@ allow_guest_registration = false
...
@@ -126,7 +126,7 @@ allow_guest_registration = false
# No default.
# No default.
# prevent_media_downloads_from = ["example.com", "example.local"]
# prevent_media_downloads_from = ["example.com", "example.local"]
# Enables
open
registration. If set to false, no users can register on this
# Enables registration. If set to false, no users can register on this
# server.
# server.
# If set to true without a token configured, users can register with no form of 2nd-
# If set to true without a token configured, users can register with no form of 2nd-
# step only if you set
# step only if you set
...
...
This diff is collapsed.
Click to expand it.
src/config/mod.rs
+
10
−
3
View file @
023c16e4
...
@@ -249,17 +249,24 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
...
@@ -249,17 +249,24 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
"Cleanup interval in seconds"
,
"Cleanup interval in seconds"
,
&
self
.cleanup_second_interval
.to_string
(),
&
self
.cleanup_second_interval
.to_string
(),
),
),
(
"Maximum request size"
,
&
self
.max_request_size
.to_string
()),
(
"Maximum request size
(bytes)
"
,
&
self
.max_request_size
.to_string
()),
(
(
"Maximum concurrent requests"
,
"Maximum concurrent requests"
,
&
self
.max_concurrent_requests
.to_string
(),
&
self
.max_concurrent_requests
.to_string
(),
),
),
(
(
"Allow registration
(open registration)
"
,
"Allow registration"
,
&
self
.allow_registration
.to_string
(),
&
self
.allow_registration
.to_string
(),
),
),
(
(
"Allow guest registration"
,
"Registration token"
,
match
self
.registration_token
{
Some
(
_
)
=>
"set"
,
None
=>
"not set (open registration!)"
,
},
),
(
"Allow guest registration (inherently false if allow registration is false)"
,
&
self
.allow_guest_registration
.to_string
(),
&
self
.allow_guest_registration
.to_string
(),
),
),
(
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment