Build static and use nginx instead of the full hugo server

This commit is contained in:
Nikolai Rodionov
2023-02-17 15:41:11 +01:00
parent 8c825f7c84
commit 0d1209904f
4 changed files with 38 additions and 21 deletions

13
configs/nginx.conf Normal file
View File

@ -0,0 +1,13 @@
server {
listen 80;
listen [::]:80;
server_name badhouseplants.com www.badhouseplants.com;
root /var/www;
index index.html; # Hugo generates HTML
location / {
try_files $uri $uri/ =404;
}
}