diff options
author | pmikus <peter.mikus@protonmail.ch> | 2022-11-16 14:36:35 +0000 |
---|---|---|
committer | Peter Mikus <peter.mikus@protonmail.ch> | 2022-11-23 13:41:06 +0000 |
commit | d9ff3e50ecf60dbc1255f5d4b11b9111c43cc8ef (patch) | |
tree | 61c4c75c690006021fdff70c5819f394b87e1e90 /csit.infra.dash/nginx/conf.d/default.conf | |
parent | 20b64f8ed040b3b25c37d71fc8feed28b9a557fd (diff) |
feat(cdash): Local data
Signed-off-by: pmikus <peter.mikus@protonmail.ch>
Change-Id: I25aa1d124c0a4fd039211054e599e542294a4b5d
Diffstat (limited to 'csit.infra.dash/nginx/conf.d/default.conf')
-rw-r--r-- | csit.infra.dash/nginx/conf.d/default.conf | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/csit.infra.dash/nginx/conf.d/default.conf b/csit.infra.dash/nginx/conf.d/default.conf new file mode 100644 index 0000000000..3670c1f548 --- /dev/null +++ b/csit.infra.dash/nginx/conf.d/default.conf @@ -0,0 +1,33 @@ +upstream minio { + server minio:9000; +} + +server_names_hash_bucket_size 512; + +server { + listen 80; + listen 443 ssl; + + ssl_certificate /etc/nginx/certs/subdomains.amazonaws.com.crt; + ssl_certificate_key /etc/nginx/certs/subdomains.amazonaws.com.key; + + server_name ~^(?<bucketname>.+)\.s3\.amazonaws\.com$; + + location / { + proxy_pass http://minio/$bucketname/$request_uri; + } +} + +server { + listen 80; + listen 443 ssl default_server; + + ssl_certificate /etc/nginx/certs/subdomains.amazonaws.com.crt; + ssl_certificate_key /etc/nginx/certs/subdomains.amazonaws.com.key; + + server_name _; + + location / { + proxy_pass http://minio; + } +}
\ No newline at end of file |