source: darkpeak-services/roles/pleroma/templates/apache.incl.conf.j2 @ cb4a7551

keycloakpleroma
Last change on this file since cb4a7551 was cb4a7551, checked in by Caolan McMahon <caolan.mcmahon@…>, 2 years ago

Get basic Pleroma setup running

  • Property mode set to 100644
File size: 914 bytes
Line 
1RequestHeader set X-Forwarded-Proto "https"
2
3Header always set X-Xss-Protection "1; mode=block"
4Header always set X-Frame-Options "DENY"
5Header always set X-Content-Type-Options "nosniff"
6Header always set Referrer-Policy same-origin
7Header always set Content-Security-Policy "default-src 'none'; base-uri 'self'; form-action 'self'; frame-ancestors 'none'; img-src 'self' data: https:; media-src 'self' https:; style-src 'self' 'unsafe-inline'; font-src 'self'; script-src 'self'; connect-src 'self' wss://{{ domain }}; upgrade-insecure-requests;"
8
9RewriteEngine On
10RewriteCond %{HTTP:Connection} Upgrade [NC]
11RewriteCond %{HTTP:Upgrade} websocket [NC]
12RewriteRule /(.*) ws://localhost:{{ pleroma_http_port }}/$1 [P,L]
13
14ProxyRequests off
15ProxyPass / http://localhost:{{ pleroma_http_port }}/
16ProxyPassReverse / http://localhost:{{ pleroma_http_port }}/
17
18RequestHeader set Host "{{ domain }}"
19ProxyPreserveHost On
Note: See TracBrowser for help on using the repository browser.