Use separate container for yinghong massage
This commit is contained in:
parent
daa7653215
commit
07e2e08388
3 changed files with 18 additions and 15 deletions
10
containers/yinghong_massage.fish
Executable file
10
containers/yinghong_massage.fish
Executable file
|
@ -0,0 +1,10 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
set -l container_name yinghong-massage-de
|
||||
|
||||
buildah build --layers -t $container_name:latest ~/code/yinghong-massage.de
|
||||
|
||||
podman-default-create \
|
||||
$container_name \
|
||||
--network traefik \
|
||||
localhost/$container_name:latest
|
|
@ -1,11 +0,0 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name yinghong-massage.de;
|
||||
|
||||
location / {
|
||||
root /volumes/sites/yinghong-massage.de;
|
||||
index index.html;
|
||||
}
|
||||
|
||||
error_page 404 /404.html;
|
||||
}
|
|
@ -1,7 +1,7 @@
|
|||
---
|
||||
http:
|
||||
middlewares:
|
||||
remove_www_yinghong_massage:
|
||||
remove_www_yinghong_massage_de:
|
||||
redirectRegex:
|
||||
regex: "^https://www\\.(yinghong-massage\\.de.*)"
|
||||
replacement: "https://${1}"
|
||||
|
@ -81,12 +81,12 @@ http:
|
|||
middlewares:
|
||||
- webhook_ratelimit
|
||||
service: webhook
|
||||
to_yinghong_massage:
|
||||
to_yinghong_massage_de:
|
||||
rule: Host(`yinghong-massage.de`) || Host(`www.yinghong-massage.de`)
|
||||
priority: 1
|
||||
middlewares:
|
||||
- remove_www_yinghong_massage
|
||||
service: nginx
|
||||
- remove_www_yinghong_massage_de
|
||||
service: yinghong_massage_de
|
||||
to_yinghong_massage_oxiform:
|
||||
rule: Host(`yinghong-massage.de`) && PathPrefix(`/oxiform`)
|
||||
priority: 2
|
||||
|
@ -182,3 +182,7 @@ http:
|
|||
loadBalancer:
|
||||
servers:
|
||||
- url: http://juna_li_com
|
||||
yinghong_massage_de:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: http://yinghong-massage-de
|
||||
|
|
Loading…
Reference in a new issue