mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-02-11 20:08:37 +00:00
feat(admin): init project (#7197)
This commit is contained in:
1
.github/deployment/front/Dockerfile
vendored
1
.github/deployment/front/Dockerfile
vendored
@@ -1,6 +1,7 @@
|
||||
FROM openresty/openresty:1.25.3.1-0-buster
|
||||
WORKDIR /app
|
||||
COPY ./packages/frontend/web/dist ./dist
|
||||
COPY ./packages/frontend/admin/dist ./admin
|
||||
COPY ./.github/deployment/front/nginx.conf /usr/local/openresty/nginx/conf/nginx.conf
|
||||
COPY ./.github/deployment/front/affine.nginx.conf /etc/nginx/conf.d/affine.nginx.conf
|
||||
|
||||
|
||||
22
.github/deployment/front/affine.nginx.conf
vendored
22
.github/deployment/front/affine.nginx.conf
vendored
@@ -1,13 +1,17 @@
|
||||
server {
|
||||
listen 8080;
|
||||
root /app/dist;
|
||||
listen 8080;
|
||||
root /app;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ /index.html;
|
||||
}
|
||||
location /admin {
|
||||
try_files $uri $uri/ /admin/index.html;
|
||||
}
|
||||
|
||||
error_page 404 /404.html;
|
||||
location = /404.html {
|
||||
internal;
|
||||
}
|
||||
location / {
|
||||
try_files $uri $uri/ /dist/index.html;
|
||||
}
|
||||
|
||||
error_page 404 /404.html;
|
||||
location = /404.html {
|
||||
internal;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user