+ # Uncomment this only after you get HTTPS working.
+ # Header always set Strict-Transport-Security "max-age=31536000; includeSubDomains"
+
+ RewriteEngine On
+ RewriteCond %{HTTP:Connection} Upgrade [NC]
+ RewriteCond %{HTTP:Upgrade} websocket [NC]
+ RewriteRule /(.*) ws://localhost:4000/$1 [P,L]
+
+ ProxyRequests off
+ ProxyPass / http://localhost:4000/
+ ProxyPassReverse / http://localhost:4000/
+
+ RequestHeader set Host "pleroma.example.com"
+ ProxyPreserveHost On