Skip to content

Instantly share code, notes, and snippets.

// static ie. frontend
server {
server_name my.domain;
charset utf-8;
root /home/ubuntu/frontend;
index index.html index.htm;
# Always serve index.html for any request
location / {
root /home/ubuntu/frontend;
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "PublicReadGetObject",
"Effect": "Allow",
"Principal": "*",
"Action": "s3:GetObject",
"Resource": "arn:aws:s3:::YOUR_S3_BUCKET_HERE/*"
}