* updated nginx.conf

This commit is contained in:
Phil Zhitnikov 2023-07-07 01:45:22 +04:00
parent 8145bb4ae3
commit 3a8b7b07a7

View File

@ -3,12 +3,20 @@ upstream django {
} }
server { server {
set $APP_HOME /var/www/phzhik-poizonstore;
listen 80; listen 80;
server_name crm-poizonstore.ru; 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; charset utf-8;
# === Add here SSL config ===
# max upload size # max upload size
client_max_body_size 75M; # adjust to taste client_max_body_size 75M; # adjust to taste