Reputation:
Reputation:
To implement the tus.io protocol into your XenForo installation using Nginx, you'll need to configure the tus server and set up Nginx to handle tus requests. Here's a general outline of the process:
1. Install tusd (tus.io server):
- You can use tusd, the official server implementation for tus.io. Install it on your server:
bash
Copy code
wget https://github.com/tus/tusd/releases/download/v1.4.0/tusd_linux_amd64.tar.gz
tar -xzf tusd_linux_amd64.tar.gz
sudo mv tusd /usr/local/bin/- Make sure tusd is executable:
bash
Copy code
sudo chmod +x /usr/local/bin/tusd2. Configure tusd:
- Create a directory to store uploads:
bash
Copy code
mkdir -p /var/www/tus/uploads- Run the tusd server:
bash
Copy code
tusd -dir /var/www/tus/uploads -behind-proxy3. Configure Nginx:
- Add a location block in your Nginx configuration for tus uploads:
nginx
Copy code
server {
listen 80;
server_name yourdomain.com;
location /tus/ {
proxy_pass http://127.0.0.1:1080;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
# Optional: increase max body size for large uploads
client_max_body_size 0;
proxy_connect_timeout 600;
proxy_send_timeout 600;
proxy_read_timeout 600;
}
# Other XenForo configurations...
}- Ensure that the proxy_pass directive points to the tusd server's address. If tusd is running locally, use http://127.0.0.1:1080.
4. Integrate with XenForo:
- Modify your XenForo installation to handle tus.io upload requests. You may need to create a custom XenForo addon or modify existing upload handling scripts to support resumable uploads using the tus protocol.
5. Test the Setup:
This setup will allow you to handle large, resumable file uploads through tus.io in your XenForo installation using Nginx.
- Upload a large file using a tus.io client to ensure everything is working correctly. Check the Nginx and tusd logs for any errors.
Reputation:
Reputation:
View attachment 40908
This is what you want A+ across the board on your SSL. Having anything less than an “A” will hurt your google rankings.
Reputation:
Reputation:
I found out there is a chunks addon that will help me with this. But is there any other way, for example adding a subdomain for the attachment and disabling its proxy? Can anyone guide me?
Why not just use chunks addon? It works perfectly fine.
Reputation:
because it has an upload limit of 100 seconds