mirror of
https://gitea.invidious.io/iv-org/documentation.git
synced 2024-08-15 00:53:34 +00:00
Created Apache2 Reverse Proxy (markdown)
This commit is contained in:
parent
42809c066b
commit
781a13ecf5
1 changed files with 24 additions and 0 deletions
24
Apache2-Reverse-Proxy.md
Normal file
24
Apache2-Reverse-Proxy.md
Normal file
|
@ -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.
|
||||||
|
|
||||||
|
```
|
||||||
|
<IfModule mod_ssl.c>
|
||||||
|
<VirtualHost *:443>
|
||||||
|
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
|
||||||
|
|
||||||
|
</VirtualHost>
|
||||||
|
</IfModule>
|
||||||
|
```
|
Loading…
Reference in a new issue