Build static and use nginx instead of the full hugo server (#8)
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
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 staticspull/10/head
parent
8c825f7c84
commit
682de643fb
@ -1,3 +1,4 @@
|
||||
node_modules
|
||||
static
|
||||
content/cv/index.pdf
|
||||
public
|
||||
|
@ -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;
|
||||
}
|
||||
}
|
Loading…
Reference in new issue