mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
chore: local port
This commit is contained in:
28
.github/deployment/Caddyfile-affine
vendored
Normal file
28
.github/deployment/Caddyfile-affine
vendored
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
:3000 {
|
||||||
|
root /* ./dist
|
||||||
|
|
||||||
|
file_server {
|
||||||
|
precompressed br
|
||||||
|
}
|
||||||
|
|
||||||
|
encode {
|
||||||
|
zstd
|
||||||
|
gzip 9
|
||||||
|
}
|
||||||
|
|
||||||
|
@notStatic {
|
||||||
|
not path /*.css
|
||||||
|
not path /*.js
|
||||||
|
not path /*.png
|
||||||
|
not path /*.jpg
|
||||||
|
not path /*.svg
|
||||||
|
not path /*.ttf
|
||||||
|
not path /*.eot
|
||||||
|
not path /*.woff
|
||||||
|
not path /*.woff2
|
||||||
|
}
|
||||||
|
|
||||||
|
handle @notStatic {
|
||||||
|
try_files {path} /index.html
|
||||||
|
}
|
||||||
|
}
|
||||||
2
.github/deployment/Dockerfile-affine
vendored
2
.github/deployment/Dockerfile-affine
vendored
@@ -7,7 +7,7 @@ RUN npm i -g pnpm@7 && pnpm i --frozen-lockfile --store=node_modules/.pnpm-store
|
|||||||
FROM node:16-alpine as relocate
|
FROM node:16-alpine as relocate
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
COPY --from=builder /app/dist/apps/ligo-virgo ./dist
|
COPY --from=builder /app/dist/apps/ligo-virgo ./dist
|
||||||
COPY --from=builder /app/.github/deployment/Caddyfile-lisa ./
|
COPY --from=builder /app/.github/deployment/Caddyfile-affine ./
|
||||||
RUN rm ./dist/*.txt
|
RUN rm ./dist/*.txt
|
||||||
|
|
||||||
# =============
|
# =============
|
||||||
|
|||||||
Reference in New Issue
Block a user