Commit 2c0495ab authored by Ihor Kaharlichenko's avatar Ihor Kaharlichenko
Browse files

Add web rol (PPL-139)

parent 9eec2ab9
- name: restart nginx
name: nginx
state: restarted
- name: Install Nginx
name: nginx-full
state: installed
- name: Start Nginx service
name: nginx
state: started
enabled: true
- name: Add sentry Nginx host
src: sentry
dest: /etc/nginx/sites-available/sentry
owner: root
group: root
mode: 0644
- name: Enable sentry Nginx host
src: /etc/nginx/sites-available/sentry
path: /etc/nginx/sites-enabled/sentry
state: link
- restart nginx
server {
server_name; # TODO: Take from variables
location /sentry {
proxy_pass http://localhost:9000; # TODO: Take from variables or use unix domain socket
proxy_redirect off;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment