chore: move data path
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
uetchy 2022-06-25 16:00:17 +09:00
parent cdebeb09a4
commit aca29317c6
4 changed files with 9 additions and 2 deletions

View File

@ -5,7 +5,6 @@
## Build ## Build
```bash ```bash
n 15
yarn build yarn build
``` ```

View File

@ -12,6 +12,7 @@ services:
- "./data:/var/www/html/_:ro" - "./data:/var/www/html/_:ro"
labels: labels:
com.centurylinklabs.watchtower.enable: "true" com.centurylinklabs.watchtower.enable: "true"
cron: cron:
image: ghcr.io/uetchy/uechi.io image: ghcr.io/uetchy/uechi.io
command: /usr/sbin/crond -d 8 -f command: /usr/sbin/crond -d 8 -f

View File

@ -6,3 +6,5 @@ services:
build: . build: .
ports: ports:
- "8080:80" - "8080:80"
volumes:
- "./data:/var/www/html/_:ro"

View File

@ -35,7 +35,7 @@ http {
location / { location / {
index index.html; index index.html;
try_files $uri $uri.html $uri/index.html =404; try_files $uri $uri.html $uri/index.html @fallback;
} }
location = / { location = / {
@ -43,6 +43,11 @@ http {
rewrite / /TERMINAL last; rewrite / /TERMINAL last;
} }
} }
location @fallback {
root /var/www/html/_;
try_files $uri $uri.html $uri/index.html =404;
}
} }
server { server {