diff options
Diffstat (limited to 'nginx')
-rw-r--r-- | nginx/gallery_remmy_foo.sls | 32 | ||||
-rw-r--r-- | nginx/remmy_foo.sls | 18 |
2 files changed, 50 insertions, 0 deletions
diff --git a/nginx/gallery_remmy_foo.sls b/nginx/gallery_remmy_foo.sls new file mode 100644 index 0000000..a58379f --- /dev/null +++ b/nginx/gallery_remmy_foo.sls @@ -0,0 +1,32 @@ +nginx: + servers: + managed: + gallery.remmy.foo: + enabled: True + config: + - server: + - server_name: gallery.remmy.foo + - listen: 80 + - listen: '[::]:80' + + - location /.well-known/acme-challenge: + - root: /srv/http + + - location /: + - return: '301 https://$server_name$request_uri' + + gallery-static.remmy.foo: + enabled: True + config: + - server: + - server_name: gallery-static.remmy.foo + - listen: 80 + - listen: '[::]:80' + + - location /.well-known/acme-challenge: + - root: /srv/http + + - location /: + - return: '301 https://$server_name$request_uri' + +# vim: ft=yaml et: diff --git a/nginx/remmy_foo.sls b/nginx/remmy_foo.sls new file mode 100644 index 0000000..e0b57d6 --- /dev/null +++ b/nginx/remmy_foo.sls @@ -0,0 +1,18 @@ +nginx: + servers: + managed: + remmy.foo: + enabled: True + config: + - server: + - server_name: remmy.foo + - listen: 80 + - listen: '[::]:80' + + - location /.well-known/acme-challenge: + - root: /srv/http + + - location /: + - return: '301 https://$server_name$request_uri' + +# vim: ft=yaml et: |