webapps:nitter
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| webapps:nitter [2021/03/05 20:27] – lucid | webapps:nitter [2021/06/18 16:36] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 13: | Line 13: | ||
| sudo certbot --nginx certonly | sudo certbot --nginx certonly | ||
| - | Configure Nginx | + | ====Configure Nginx==== |
| + | This configuration will obtain an A+ on Qualy' | ||
| sudo vim / | sudo vim / | ||
| < | < | ||
| Line 32: | Line 34: | ||
| ssl_ecdh_curve secp384r1; | ssl_ecdh_curve secp384r1; | ||
| ssl_session_tickets off; | ssl_session_tickets off; | ||
| - | ssl_ciphers ' | + | ssl_ciphers ' |
| ssl_prefer_server_ciphers on; | ssl_prefer_server_ciphers on; | ||
| ssl_protocols TLSv1.3 TLSv1.2; | ssl_protocols TLSv1.3 TLSv1.2; | ||
| Line 39: | Line 41: | ||
| ssl_stapling_verify on; | ssl_stapling_verify on; | ||
| - | # Add headers to serve security related headers | ||
| - | # Before enabling Strict-Transport-Security headers please read into this | ||
| - | # topic first. | ||
| add_header Strict-Transport-Security " | add_header Strict-Transport-Security " | ||
| - | # | ||
| - | # WARNING: Only add the preload option once you read about | ||
| - | # the consequences in https:// | ||
| - | # will add the domain to a hardcoded list that is shipped | ||
| - | # in all major browsers and getting removed from this list | ||
| - | # could take several months. | ||
| add_header Referrer-Policy " | add_header Referrer-Policy " | ||
| add_header X-Content-Type-Options " | add_header X-Content-Type-Options " | ||
| Line 56: | Line 49: | ||
| add_header X-Robots-Tag " | add_header X-Robots-Tag " | ||
| add_header X-XSS-Protection "1; mode=block" | add_header X-XSS-Protection "1; mode=block" | ||
| + | add_header Content-Security-Policy " | ||
| location / { | location / { | ||
| Line 63: | Line 57: | ||
| </ | </ | ||
| + | ====Install and Configure nim==== | ||
| Install nim, just wget the latest package from their website. https:// | Install nim, just wget the latest package from their website. https:// | ||
| Their install script is improperly written so you will need to manually copy the executable binary '' | Their install script is improperly written so you will need to manually copy the executable binary '' | ||
| Line 86: | Line 81: | ||
| ''/ | ''/ | ||
| Just make sure to fill out the hostname and hmacKey, I gave my key a randomly generated 64 character string, seems to work. | Just make sure to fill out the hostname and hmacKey, I gave my key a randomly generated 64 character string, seems to work. | ||
| + | |||
| + | |||
| + | ====Configure and enable UFW==== | ||
| + | sudo ufw allow ssh | ||
| + | sudo ufw allow http | ||
| + | sudo ufw allow https | ||
| + | sudo ufw enable | ||
| =====Make it run on startup===== | =====Make it run on startup===== | ||
| Line 116: | Line 118: | ||
| WantedBy=multi-user.target | WantedBy=multi-user.target | ||
| </ | </ | ||
| + | |||
| + | |||
webapps/nitter.1614976059.txt.gz · Last modified: 2021/06/18 16:36 (external edit)