-
Notifications
You must be signed in to change notification settings - Fork 1k
Use AWS S3 on AVideo Platform
Fiero edited this page Dec 13, 2019
·
6 revisions
Details:
- Only videos will be saved on S3, all images will be saved locally.
- Dummy video with 10 bytes will be locally saved, for system reference only.
- Log into your console and go to the amazon s3 tool and click create bucket.
- Create a user with credentials who has permissions to read/write to this new bucket. Also add AmazonS3FullAccess policy for the AWS user.
- Record your Access Key ID and show your secret access key.
Optional - Configure apache xsendfile
Just in case you want to hide the S3 URL
sudo apt-get install libapache2-mod-xsendfile && sudo a2enmod xsendfile
sudo nano /etc/apache2/apache2.conf
<Directory /var/www/YouPHPTube/>
Options Indexes FollowSymLinks
XSendFile on
XSendFilePath /var/www/YouPHPTube/
AllowOverride All
Require all granted
Order Allow,Deny
Allow from All
</Directory>
sudo service apache2 reload
sudo nano /var/www/YouPHPTube/.htaccess
<IfModule mod_xsendfile.c>
RewriteRule ^videos/([A-Za-z0-9-_.]+)$ view/xsendfile.php?file=$1 [NC,L]
</IfModule>
The Open Source Video Platform Solution
| Service | Description | Link |
|---|---|---|
| 🎯 | Professional Support - Direct assistance from core developers | Contact |
| ☁️ | AVideo CDN - High-performance video delivery network | Pricing |
AVideo Platform © 2024 - Self-hosted video streaming platform
Made with ❤️ by WWBN and the open source community