Discover Snippets

@tamra tamra / リバースプロキシの設定例 Created at Sat Nov 11 06:23:10 JST 2017
Apache2でmastodonのリバースプロキシを作るサンプル。
  1. <VirtualHost *:443>
  2. ServerName mastodon.hoge
  3. Header add Strict-Transport-Security "max-age=31536000 ; includeSubdomains ; Preload "
  4. Header add X-Content-Type-Options nosniff
  5. Header add Referrer-Policy "unsafe-url"
  6. Header add Content-Security-Policy "frame-ancestors 'none'; object-src 'none'; script-src 'self'; base-uri 'none'"
  7. SSLEngine on
  8. SSLHonorCipherOrder on
  9. SSLProtocol -All +TLSv1 +TLSv1.1 +TLSv1.2
  10. SSLCipherSuite HIGH:MEDIUM:!aNULL:!MD5