Skip to content

Commit

Permalink
OCLOMRS-27 Adding Nginx Configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
mwaz committed May 23, 2018
1 parent 137cfd7 commit 885e990
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions nginx.conf
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
- listen: "80"
server_name: "qa.oclclient.openmrs.org"
extra_parameters: |
return 301 https://$host$request_uri;
- listen: "443 ssl"
server_name: "qa.oclclient.openmrs.org"
extra_parameters: |
access_log /var/log/nginx/oclclient_access.log;
error_log /var/log/nginx/oclclient_error.log;
ssl_certificate /etc/letsencrypt/live/narok.openmrs.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/narok.openmrs.org/privkey.pem;
location ^~ /.well-known/acme-challenge/ {
root /usr/share/nginx/html;
}
location / {
proxy_pass http://127.0.0.1:8081/;
try_files $uri $uri/ /index.html;
}

0 comments on commit 885e990

Please sign in to comment.