Unverified Commit d6315a97 authored by Prasath Sivasubramaniyan's avatar Prasath Sivasubramaniyan Committed by GitHub
Browse files

Merge branch 'project-sunbird:master' into prasath-release-5.1.0

Showing with 26 additions and 1 deletion
+26 -1
### Installation wiki moved to [here.](http://www.sunbird.org/developer-docs/installation)
### Installation wiki moved to [here.](http://docs.sunbird.org/latest/developer-docs/server-installation/prerequisites/)
---
# Retrieve information from cassandra
- hosts: "{{server_group}}"
gather_facts: false
vars_files:
- "{{inventory_dir}}/secrets.yml"
tasks:
- name: validate the cassandra query
shell: "echo {{cassandra_query}} | grep -iE 'drop|delete|truncate|alter|update|insert'"
register: validator_output
run_once: true
- name: execute the query on succesful validation
shell: "cqlsh --request-timeout=3600 \"{{cassandra_query}}\""
when: validator_output.rc == 1
run_once: true
......@@ -117,6 +117,9 @@ proxyconfig: |-
proxy_set_header X-Forwarded-Proto $scheme;
ignore_invalid_headers off; #pass through headers from Jenkins which are considered invalid by Nginx server.
resolver {{ kube_dns_ip }} valid=30s;
location ~* .*\/\.\..*$ {
return 401 "InvalidRoute Called.";
}
# Mobile Devices Refresh token Endpoints
location ~* ^/auth/v1/refresh/token {
rewrite ^/auth/(.*) /auth/$1 break;
......@@ -1211,7 +1214,12 @@ keycloakconf: |
proxy_http_version 1.1;
proxy_pass http://keycloak;
}
location /mirror {
proxy_set_header Requestdebugger_url https://dev.sunbirded.org;
proxy_pass http://requestdebugger-service.dev.svc.cluster.local:80$request_uri;
}
location / {
mirror /mirror;
rewrite ^/(.*) /$1 break;
proxy_set_header Host $host;
proxy_set_header X-Real-IP {{ nginx_client_public_ip_header | d('$remote_addr') }};
......
Supports Markdown
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