File tree Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Expand file tree Collapse file tree 3 files changed +36
-1
lines changed Original file line number Diff line number Diff line change 99# # Search services
1010- import_playbook : idr-elasticsearch.yml
1111- import_playbook : idr-searchengine.yml
12-
12+ - import_playbook : idr-searchengine_nginx.yml
1313# # Restore searchengine data if existence
1414- import_playbook : restore_searchengine_data.yml
Original file line number Diff line number Diff line change 1+ - name : Deploying nginx for search engine
2+ hosts : " {{ idr_environment | default('idr') }}-searchengine-hosts"
3+
4+ tasks :
5+ - name : Include ome.nginx role
6+ ansible.builtin.include_role :
7+ name : ome.nginx
8+
9+ - name : write nginx config
10+ become : true
11+ ansible.builtin.template :
12+ dest : /etc/nginx/conf.d/searchengine.conf
13+ src : searchengine.conf.j2
14+ mode : 0644
15+
16+ - name : Restart nginx
17+ service :
18+ name : nginx
19+ state : restarted
Original file line number Diff line number Diff line change 1+
2+ server {
3+ listen 8080;
4+
5+ location /searchengine {
6+
7+ proxy_pass http://127.0.0.1:5577/searchengine;
8+ proxy_redirect http://127.0.0.1:5577/searchengine $scheme://$server_name;
9+ proxy_set_header Host $host/searchengine;
10+ }
11+
12+ location /send_file/ {
13+ internal;
14+ alias /{{ apps_folder }}/data_dump/; # real file storage
15+ }
16+ }
You can’t perform that action at this time.
0 commit comments