Add yinghong-massage.de
This commit is contained in:
parent
8a142fafe4
commit
365e76d9bd
4 changed files with 49 additions and 17 deletions
19
containers/contact-form.fish
Executable file
19
containers/contact-form.fish
Executable file
|
@ -0,0 +1,19 @@
|
|||
#!/usr/bin/env fish
|
||||
|
||||
set -l container_name yinghong-massage-contact-form
|
||||
set -l container_volumes_dir ~/volumes/$container_name
|
||||
set -l repo_dir ~/code/yinghong-massage.de/contact-form
|
||||
|
||||
cd $repo_dir
|
||||
cargo update
|
||||
cargo build -r
|
||||
|
||||
podman-default-create \
|
||||
$container_name \
|
||||
--network traefik \
|
||||
-v $repo_dir:/volumes/repo:Z,ro \
|
||||
-v $container_volumes_dir/logs:/volumes/logs:Z \
|
||||
-w /volumes/repo \
|
||||
-e CF_CONFIG_FILE=config.json \
|
||||
registry.fedoraproject.org/fedora:latest \
|
||||
target/release/contact-form
|
11
volumes/nginx/conf.d/yinghong-massage.de.conf
Normal file
11
volumes/nginx/conf.d/yinghong-massage.de.conf
Normal file
|
@ -0,0 +1,11 @@
|
|||
server {
|
||||
listen 80;
|
||||
server_name yinghong-massage.de www.yinghong-massage.de;
|
||||
|
||||
location / {
|
||||
root /volumes/sites/yinghong-massage.de;
|
||||
index index.html;
|
||||
}
|
||||
|
||||
error_page 404 /404.html;
|
||||
}
|
|
@ -3,17 +3,12 @@ http:
|
|||
routers:
|
||||
to_xueyue_li_art:
|
||||
rule: Host(`xueyue-li.art`) || Host(`www.xueyue-li.art`)
|
||||
service: xueyue_li_art
|
||||
service: nginx
|
||||
tls:
|
||||
certResolver: le
|
||||
to_how_to_linux:
|
||||
rule: Host(`how-to-linux.mo8it.xyz`)
|
||||
service: how_to_linux
|
||||
tls:
|
||||
certResolver: le
|
||||
to_zola_example:
|
||||
rule: Host(`zola-example.mo8it.xyz`)
|
||||
service: zola_example
|
||||
service: nginx
|
||||
tls:
|
||||
certResolver: le
|
||||
to_advlabdb:
|
||||
|
@ -46,17 +41,21 @@ http:
|
|||
service: webhook
|
||||
tls:
|
||||
certResolver: le
|
||||
to_yinghong_massage:
|
||||
rule: Host(`yinghong-massage.de`) || Host(`www.yinghong-massage.de`)
|
||||
priority: 1
|
||||
service: nginx
|
||||
tls:
|
||||
certResolver: le
|
||||
to_yinghong_massage_contact_form:
|
||||
rule: Host(`yinghong-massage.de`) && PathPrefix(`/contact-form`)
|
||||
priority: 2
|
||||
service: yinghong_massage_contact_form
|
||||
tls:
|
||||
certResolver: le
|
||||
|
||||
services:
|
||||
xueyue_li_art:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: http://nginx
|
||||
how_to_linux:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: http://nginx
|
||||
zola_example:
|
||||
nginx:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: http://nginx
|
||||
|
@ -84,3 +83,7 @@ http:
|
|||
loadBalancer:
|
||||
servers:
|
||||
- url: http://webhook
|
||||
yinghong_massage_contact_form:
|
||||
loadBalancer:
|
||||
servers:
|
||||
- url: http://yinghong-massage-contact-form
|
||||
|
|
|
@ -24,7 +24,6 @@ certificatesResolvers:
|
|||
acme:
|
||||
email: mo8it@proton.me
|
||||
storage: /volumes/certs/acme.json
|
||||
# caServer: https://acme-staging-v02.api.letsencrypt.org/directory
|
||||
tlsChallenge: {}
|
||||
|
||||
accessLog:
|
||||
|
|
Loading…
Reference in a new issue