summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohannes Löthberg <johannes@kyriasis.com>2020-02-22 07:16:31 +0100
committerJohannes Löthberg <johannes@kyriasis.com>2020-02-22 07:16:31 +0100
commitc04359826433e467a5ea502c37d2f1e802050c5b (patch)
tree5bfd8f9e92c97e6e9593b6d8285487233b6991b4
parentf9a1d8ea527bea1ba7702aff0ae4d375cbb914d3 (diff)
downloadpillar-c04359826433e467a5ea502c37d2f1e802050c5b.tar.xz
Add repsys-test HTTP nginx config
Signed-off-by: Johannes Löthberg <johannes@kyriasis.com>
-rw-r--r--nginx/repsys_kyriasis_com.sls14
1 files changed, 14 insertions, 0 deletions
diff --git a/nginx/repsys_kyriasis_com.sls b/nginx/repsys_kyriasis_com.sls
index f886336..1536d70 100644
--- a/nginx/repsys_kyriasis_com.sls
+++ b/nginx/repsys_kyriasis_com.sls
@@ -45,4 +45,18 @@ nginx:
- include: uwsgi_params
- uwsgi_pass: localhost:3002
+
+ - server:
+ - server_name: repsys-test.kyriasis.com
+ - listen: 80
+ - listen: '[::]:80'
+
+ - include: snippets/security_headers.conf
+
+ - location /.well-known/acme-challenge:
+ - root: /srv/http
+
+ - location /:
+ - return: '301 https://$server_name$request_uri'
+
# vim: ft=yaml et: