This repository has been archived on 2024-10-01. You can view files and clone it, but cannot push or open issues or pull requests.
badhouseplants-net-old/configs/nginx.conf
Allen Languor 682de643fb Build static and use nginx instead of the full hugo server (#8)
This pull request will close #4

Hugo server needs about 800mb of memory just to do what nginx can with a way smaller requirements, so it makes sense to stop using `hugo` for serving statics
2023-02-17 14:48:16 +00:00

14 lines
257 B
Nginx Configuration File

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;
}
}