diff --git a/_deploy/nginx.conf b/_deploy/nginx.conf index cae2b0e..ebeda69 100644 --- a/_deploy/nginx.conf +++ b/_deploy/nginx.conf @@ -3,12 +3,20 @@ upstream django { } server { - set $APP_HOME /var/www/phzhik-poizonstore; - listen 80; server_name crm-poizonstore.ru; + return 301 https://$host$request_uri; +} + +server { + set $APP_HOME /var/www/phzhik-poizonstore; + + listen 443 ssl; + server_name crm-poizonstore.ru; charset utf-8; + # === Add here SSL config === + # max upload size client_max_body_size 75M; # adjust to taste