Skip to content

Commit af6c6f4

Browse files
committed
Closes #2.
1 parent 6c72bd1 commit af6c6f4

File tree

3 files changed

+10
-0
lines changed

3 files changed

+10
-0
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ private-config/
22
deploy-config/
33
dev-config/THIS_IS_BATCH
44
*.pyc
5+
certs

deploy.yaml

+2
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@
3131
#Basic service
3232
- service: name=postgresql state=started
3333
- service: name=supervisor state=started
34+
- template: src=certs/progcom.njl.us.crt dest=/etc/nginx/progcom.njl.us.crt
35+
- template: src=certs/progcom.njl.us.key dest=/etc/nginx/progcom.njl.us.key
3436
- template: src=deployment/nginx.conf dest=/etc/nginx/sites-enabled/default
3537
notify: restart nginx
3638
- lineinfile: dest=/etc/postgresql/9.3/main/pg_hba.conf

deployment/nginx.conf

+7
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,13 @@ server {
1111
server_name staging.cs.qu.to;
1212

1313
listen 80 default_server;
14+
listen 443 ssl;
15+
16+
server_name progcom.njl.us;
17+
ssl_certificate progcom.njl.us.crt;
18+
ssl_certificate_key progcom.njl.us.key;
19+
20+
1421

1522
location /static/ {
1623

0 commit comments

Comments
 (0)