diff --git a/deploy/nginx.conf b/deploy/nginx.conf new file mode 100644 index 0000000..4d5845d --- /dev/null +++ b/deploy/nginx.conf @@ -0,0 +1,17 @@ +server { + server_name hazemkrimi.tech; + + access_log /var/log/nginx/access.log; + root /var/www/hazemkrimi.tech; + index index.html; + + location / { + try_files $uri $uri/ =404; + } + + location ~* \.(?:css|js|ico|ttf|png|svg|webm) { + expires 1M; + access_log off; + add_header Cache-Control "public"; + } +}