This commit is contained in:
parent
cdebeb09a4
commit
aca29317c6
@ -5,7 +5,6 @@
|
|||||||
## Build
|
## Build
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
n 15
|
|
||||||
yarn build
|
yarn build
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -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
|
||||||
|
@ -6,3 +6,5 @@ services:
|
|||||||
build: .
|
build: .
|
||||||
ports:
|
ports:
|
||||||
- "8080:80"
|
- "8080:80"
|
||||||
|
volumes:
|
||||||
|
- "./data:/var/www/html/_:ro"
|
||||||
|
@ -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 {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user