-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtransfercli.conf.example
More file actions
35 lines (30 loc) · 1.01 KB
/
Copy pathtransfercli.conf.example
File metadata and controls
35 lines (30 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
# TransferCLI nginx vhost example
# Copy to /etc/nginx/sites-available/transfercli, edit server_name, then:
# ln -s /etc/nginx/sites-available/transfercli /etc/nginx/sites-enabled/
# certbot --nginx -d your.host
server {
listen 80;
server_name files.example.com;
# Disable IP logging for privacy (optional)
access_log off;
# Allow large uploads (stream through, no buffering)
client_max_body_size 0;
proxy_request_buffering off;
proxy_buffering off;
proxy_read_timeout 3600s;
proxy_send_timeout 3600s;
# Admin panel with basic auth
location /admin/ {
auth_basic "TransferCLI admin";
auth_basic_user_file /etc/transfercli/.htpasswd;
proxy_pass http://127.0.0.1:8082;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
}
# transfer.sh upload backend
location / {
proxy_pass http://127.0.0.1:8081;
proxy_set_header Host $host;
proxy_set_header X-Forwarded-Proto $scheme;
}
}