Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
P
pleroma
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
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
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
jeff
pleroma
Commits
69f5dfcf
Commit
69f5dfcf
authored
6 years ago
by
kaniini
Browse files
Options
Downloads
Patches
Plain Diff
config: add default parameters for CSPPlug
parent
057a9017
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/config.exs
+5
-0
5 additions, 0 deletions
config/config.exs
config/config.md
+5
-0
5 additions, 0 deletions
config/config.md
with
10 additions
and
0 deletions
config/config.exs
+
5
−
0
View file @
69f5dfcf
...
...
@@ -176,6 +176,11 @@ config :pleroma, :suggestions,
limit:
23
,
web:
"https://vinayaka.distsn.org/?{{host}}+{{user}}"
config
:pleroma
,
:csp
,
enabled:
true
,
sts:
false
,
sts_max_age:
31_536_000
config
:cors_plug
,
max_age:
86_400
,
methods:
[
"POST"
,
"PUT"
,
"DELETE"
,
"GET"
,
"PATCH"
,
"OPTIONS"
],
...
...
This diff is collapsed.
Click to expand it.
config/config.md
+
5
−
0
View file @
69f5dfcf
...
...
@@ -80,3 +80,8 @@ This section is used to configure Pleroma-FE, unless ``:managed_config`` in ``:i
*
``unfollow_blocked``
: Whether blocks result in people getting unfollowed
*
``outgoing_blocks``
: Whether to federate blocks to other instances
*
``deny_follow_blocked``
: Whether to disallow following an account that has blocked the user in question
## :csp
*
``enabled``
: Whether the managed content security policy is enabled
*
``sts``
: Whether to additionally send a
`Strict-Transport-Security`
header
*
``sts_max_age``
: The maximum age for the
`Strict-Transport-Security`
header if sent
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