summarylogtreecommitdiffstats
path: root/healthchecks-nginx.conf
blob: eb3a8457dae58c336ecb701a88e72bc78f6be368 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
server {
    listen       80;
    listen       [::]:80;
    server_name  mysite.mydomain.com;
    return       301 https://$server_name$request_uri;
}

server {
    listen       443 ssl http2;
    listen       [::]:443 ssl http2;
    server_name  mysite.mydomain.com;

    ssl_certificate      certificates/mycert.crt;
    ssl_certificate_key  certificates/mykey.key;

    location / {
        include uwsgi_params;
        uwsgi_pass 127.0.0.1:8000;
    	#uwsgi_pass unix:/run/uwsgi/healthchecks.sock;
  }
}