add Nginx proxy for ElasticSearch HQ
Signed-off-by: Jakub Sokołowski <jakub@status.im>
This commit is contained in:
parent
ae18e0b275
commit
6a6290c733
|
@ -58,3 +58,21 @@ oauth_local_port: 8090
|
|||
oauth_cookie_secret: '{{ lookup("passwordstore", "services/cookie-secret") }}'
|
||||
oauth_id: '{{ lookup("passwordstore", "services/TheHive/ElasticSearch/HQ/oauth-id") }}'
|
||||
oauth_secret: '{{ lookup("passwordstore", "services/TheHive/ElasticSearch/HQ/oauth-secret") }}'
|
||||
|
||||
# Proxy for ES HQ
|
||||
nginx_sites:
|
||||
elasticsearch_hq_http:
|
||||
- listen 80
|
||||
- server_name {{ oauth_domain }}
|
||||
- return 302 https://$server_name$request_uri
|
||||
elasticsearch_hq_https:
|
||||
- listen 443 ssl
|
||||
- server_name {{ oauth_domain }}
|
||||
|
||||
- ssl_certificate /certs/status.im/origin.crt
|
||||
- ssl_certificate_key /certs/status.im/origin.key
|
||||
|
||||
- location / {
|
||||
proxy_set_header Host $host;
|
||||
proxy_pass http://127.0.0.1:{{ oauth_local_port }}/;
|
||||
}
|
||||
|
|
|
@ -7,5 +7,6 @@
|
|||
- { role: elasticsearch, tags: elasticsearch }
|
||||
- { role: elasticsearch-hq, tags: elasticsearch-hq }
|
||||
- { role: oauth-proxy, tags: oauth-proxy }
|
||||
- { role: origin-certs, tags: origin-certs }
|
||||
- { role: nginx, tags: nginx }
|
||||
- { role: open-ports, tags: open-ports }
|
||||
|
|
|
@ -1,4 +1,8 @@
|
|||
---
|
||||
- name: nginx
|
||||
src: git@github.com:status-im/ansible-role-nginx.git
|
||||
scm: git
|
||||
|
||||
- name: origin-cert
|
||||
src: git@github.com:status-im/infra-role-origin-certs.git
|
||||
scm: git
|
||||
|
|
Loading…
Reference in New Issue