How to deploy On Premise
If you are an Enterprise customer you can deploy Accurate Video LTA On Premise instead of using apps.accurate.video. You will need access to the Codemill repository that contains the deployment artifacts. Contact your sales representative for the credentials. This guide covers how you can use S3 to host the application, but you could use any static hosting solution that you prefer.
Download the application bundle
List the available application bundles
curl --user <username>:<password> "https://codemill.jfrog.io/artifactory/api/storage/accurate-video-artifacts/LTA?list"
{
"uri" : "https://codemill.jfrog.io/artifactory/api/storage/accurate-video-artifacts/LTA",
"created" : "2024-05-27T07:20:58.459Z",
"files" : [ {
"uri" : "/accurate-video-lta-5.20.1-1716468110.tar.gz",
"size" : 12349440,
"lastModified" : "2024-05-23T13:03:11.049Z",
"folder" : false,
"sha1" : "82055f0db794a9c8cfb856237fa6a3e6f511c95c",
"sha2" : "f4a173bdadc15a0774bfd7a88cf2fa00bffcbd952f8f7ea54808bb4c1e5695f1"
}, ... ]
}
Download application bundle, pick the latest one if you are unsure of what version you need. Add the uri
of the file
to the end of https://codemill.jfrog.io/artifactory/accurate-video-artifacts/LTA
to get the final download location.
curl --user <username>:<password> --remote-name --location "https://codemill.jfrog.io/artifactory/accurate-video-artifacts/LTA/accurate-video-lta-5.20.1-1716468110.tar.gz"
The static contents of the application bundle can be served with a static HTML server. The application does not need a server-side engine to dynamically compose pages, it is all done on the client-side. The application's host page (index.html
) needs to be returned when asked for a file that it does not have.
Example: Host the application on S3
These examples use the AWS CLI. But you could also use the AWS admin console for example.
First, we create a bucket
aws s3 create-bucket --bucket lta-deployment --create-bucket-configuration LocationConstraint=eu-west-1
Set up public access configuration for the bucket
aws s3api put-public-access-block --bucket lta-deployment --public-access-block-configuration "BlockPublicAcls=false,IgnorePublicAcls=false,BlockPublicPolicy=false,RestrictPublicBuckets=false"
Set a bucket policy that allows reading the static files
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::lta-deployment/*"
}
]
}
aws s3api put-bucket-policy --bucket lta-deployment --policy file://policy.json
Prepare the bucket for website hosting.
aws s3 website s3://lta-deployment --index-document index.html --error-document index.html
We specify index.html
as the error document to allow the application to handle all routing client-side.
Upload the application
Unpack the files locally and transfer them to the bucket.
mkdir site
tar -xzf accurate-video-lta-5.20.1-1716468110.tar.gz -C /site
aws s3 cp site/ s3://lta-deployment --recursive
To upgrade the application later, simply remove the old files and transfer the files from the new application bundle.
Final steps
Visit the page to make sure it works. You can find the website endpoint in the AWS console for the S3 bucket, for this example it is:
http://lta-deployment.s3-website-eu-west-1.amazonaws.com
AWS have a lot more resources on how to host websites on S3, these are some User Guides you may find helpful: