Skip to content

Commit 7a5ca3d

Browse files
committed
reduce indent width to increase readability
1 parent 8f8015f commit 7a5ca3d

File tree

1 file changed

+21
-22
lines changed

1 file changed

+21
-22
lines changed

README.md

Lines changed: 21 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -4,36 +4,35 @@ AWS proxy module
44
Implements proxying of authenticated requests to S3.
55

66
```nginx
7-
server {
8-
listen 8000;
7+
server {
8+
listen 8000;
99
10-
location / {
11-
proxy_pass http://your_s3_bucket.s3.amazonaws.com;
10+
location / {
11+
proxy_pass http://your_s3_bucket.s3.amazonaws.com;
1212
13-
aws_access_key your_aws_access_key;
14-
aws_secret_key the_secret_associated_with_the_above_access_key;
15-
s3_bucket your_s3_bucket;
13+
aws_access_key your_aws_access_key;
14+
aws_secret_key the_secret_associated_with_the_above_access_key;
15+
s3_bucket your_s3_bucket;
1616
17-
proxy_set_header Authorization $s3_auth_token;
18-
proxy_set_header x-amz-date $aws_date;
19-
}
20-
21-
# This is an example that does not use the server root for the proxy root
22-
location /myfiles {
23-
proxy_pass http://your_s3_bucket.s3.amazonaws.com/;
24-
25-
aws_access_key your_aws_access_key;
26-
aws_secret_key the_secret_associated_with_the_above_access_key;
27-
s3_bucket your_s3_bucket;
28-
chop_prefix /myfiles; # Take out this part of the URL before signing it, since '/myfiles' will not be part of the URI sent to Amazon
17+
proxy_set_header Authorization $s3_auth_token;
18+
proxy_set_header x-amz-date $aws_date;
19+
}
2920
21+
# This is an example that does not use the server root for the proxy root
22+
location /myfiles {
23+
proxy_pass http://your_s3_bucket.s3.amazonaws.com/;
3024
31-
proxy_set_header Authorization $s3_auth_token;
32-
proxy_set_header x-amz-date $aws_date;
33-
}
25+
aws_access_key your_aws_access_key;
26+
aws_secret_key the_secret_associated_with_the_above_access_key;
27+
s3_bucket your_s3_bucket;
28+
chop_prefix /myfiles; # Take out this part of the URL before signing it, since '/myfiles' will not be part of the URI sent to Amazon
3429
3530
31+
proxy_set_header Authorization $s3_auth_token;
32+
proxy_set_header x-amz-date $aws_date;
3633
}
34+
35+
}
3736
```
3837

3938
Request signing & Amazon Cloudfront Service

0 commit comments

Comments
 (0)