diff --git a/Apache2-Reverse-Proxy.md b/Apache2-Reverse-Proxy.md new file mode 100644 index 0000000..eff8500 --- /dev/null +++ b/Apache2-Reverse-Proxy.md @@ -0,0 +1,24 @@ +This is a very basic config, secured with Let's Encrypt. Any log is disabled by default. Do not forget to replace `ServerName` with your domain. + +``` + + + ServerName invidious.domain.tld + ServerAdmin admin@localhost + + ProxyPreserveHost On + ProxyRequests off + ProxyPass / http://127.0.0.1:3000/ + ProxyPassReverse / http://127.0.0.1:3000/ + +# ErrorLog /var/log/apache2/invidious.domain.tld/error.log + CustomLog /dev/null combined + +RewriteEngine on +SSLCertificateFile /etc/letsencrypt/live/invidious.domain.tld/fullchain.pem +SSLCertificateKeyFile /etc/letsencrypt/live/invidious.domain.tld/privkey.pem +SSLCertificateChainFile /etc/letsencrypt/live/invidious.domain.tld/chain.pem + + + +``` \ No newline at end of file