Skip to main content
Version: 0.1.x

Reverse Proxy

For production use, you should use a reverse proxy like nginx, traefik or Apache to serve the directory browser. This has many advantages, like SSL support, caching and more.

Here are some configurations for different reverse proxies:

Apache
<VirtualHost *:80>
ServerName domain.tld

ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/
</VirtualHost>

<VirtualHost *:443>
ServerName domain.tld

ProxyPass / http://127.0.0.1:8080/
ProxyPassReverse / http://127.0.0.1:8080/

SSLEngine on
SSLCertificateFile cert.pem
SSLCertificateKeyFile cert.key
</VirtualHost>
nginx
server {
listen 80;
listen 443 ssl;
server_name domain.tld;

location / {
proxy_pass http://127.0.0.1:8080/;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
}

ssl_certificate /path/to/cert.pem;
ssl_certificate_key /path/to/cert.key;
}
Details

traefik TODO