summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhyang <hyang@hyang.xyz>2023-10-01 23:28:22 -0700
committerhyang <hyang@hyang.xyz>2023-10-01 23:28:22 -0700
commit795b579f749219b434c1770eaf848455412ee275 (patch)
tree3228e0c90c49e4145a801c618052efc623c6c317
parent19b08efc112975c076802ff09477c286086d021d (diff)
remove default.conf
-rwxr-xr-xnginx-entrypoint.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/nginx-entrypoint.sh b/nginx-entrypoint.sh
index e5c8719..461a643 100755
--- a/nginx-entrypoint.sh
+++ b/nginx-entrypoint.sh
@@ -2,6 +2,7 @@ mkdir -p /var/www/hugo_pub
cp -r ./public/* /var/www/hugo_pub
chown -R root:www-data /var/www/hugo_pub
+
cat <<EOF > /etc/nginx/nginx.conf
user nginx;
@@ -73,6 +74,8 @@ http {
}
EOF
+rm /etc/nginx/http.d/default.conf
+
cat <<EOF > /etc/nginx/http.d/hugo.conf
server {
# Listen on port 80 for HTTP requests