Эх сурвалжийг харах

chore: 废弃 nginx 部署链路,仅保留 Hugo 服务

Daily Deploy Bot 21 цаг өмнө
parent
commit
8e7187b452

+ 0 - 8
site/deploy/Dockerfile

@@ -1,8 +0,0 @@
-FROM klakegg/hugo:ext-alpine AS builder
-WORKDIR /src
-COPY . /src
-RUN hugo --minify --destination /tmp/public
-
-FROM nginx:1.27-alpine
-COPY deploy/nginx.conf /etc/nginx/conf.d/default.conf
-COPY --from=builder /tmp/public /usr/share/nginx/html

+ 0 - 9
site/deploy/compose.yaml

@@ -1,9 +0,0 @@
-services:
-  personal-site:
-    build:
-      context: ..
-      dockerfile: deploy/Dockerfile
-    container_name: personal-hugo-site
-    ports:
-      - "9080:80"
-    restart: unless-stopped

+ 0 - 15
site/deploy/nginx.conf

@@ -1,15 +0,0 @@
-server {
-  listen 80;
-  server_name _;
-  root /usr/share/nginx/html;
-  index index.html;
-
-  location / {
-    try_files $uri $uri/ /index.html;
-  }
-
-  location = /robots.txt {
-    access_log off;
-    log_not_found off;
-  }
-}