diff --git a/deploy/docker_nginx.conf b/deploy/docker_nginx.conf index 53d0c90..c2eb204 100644 --- a/deploy/docker_nginx.conf +++ b/deploy/docker_nginx.conf @@ -9,9 +9,10 @@ http { server { root /mpbackend; - listen 80; - # TODO, add server name, subdomain liikkumisprofiili.turku.fi etc. - server_name localhost + listen 443 ssl; + ssl_certificate /mpbackend/ssl/star_turku_fi.crt; + ssl_certificate_key /mpbackend/ssl/star_turku_fi.key; + server_name liikkumistesti-api.turku.fi; charset utf-8; # max upload size client_max_body_size 75M; diff --git a/docker-compose.prod.yml b/docker-compose.prod.yml index 21ae3f7..1d162e5 100644 --- a/docker-compose.prod.yml +++ b/docker-compose.prod.yml @@ -16,7 +16,7 @@ services: dockerfile: ./docker/nginx/Dockerfile context: . ports: - - 80:80 + - 443:443 depends_on: - mpbackend networks: