mirror of
https://git.sr.ht/~magic_rb/cluster
synced 2024-11-24 09:06:15 +01:00
83 lines
1.3 KiB
Plaintext
83 lines
1.3 KiB
Plaintext
|
upstream gitea {
|
||
|
server {{ env "NOMAD_UPSTREAM_ADDR_gitea" }};
|
||
|
}
|
||
|
|
||
|
upstream hydra {
|
||
|
server {{ env "NOMAD_UPSTREAM_ADDR_hydra" }};
|
||
|
}
|
||
|
|
||
|
upstream nextcloud {
|
||
|
server {{ env "NOMAD_UPSTREAM_ADDR_nextcloud" }};
|
||
|
}
|
||
|
|
||
|
upstream website {
|
||
|
server {{ env "NOMAD_UPSTREAM_ADDR_website" }};
|
||
|
}
|
||
|
|
||
|
upstream reicio {
|
||
|
server {{ env "NOMAD_UPSTREAM_ADDR_reicio" }};
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
listen 443 ssl;
|
||
|
|
||
|
server_name _;
|
||
|
|
||
|
include /local/ssl.conf;
|
||
|
|
||
|
return 404;
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
listen 443 ssl;
|
||
|
|
||
|
server_name gitea.redalder.org;
|
||
|
|
||
|
include /local/security.conf;
|
||
|
include /local/ssl.conf;
|
||
|
|
||
|
client_max_body_size 100M;
|
||
|
|
||
|
location / {
|
||
|
include /local/headers.conf;
|
||
|
proxy_pass http://gitea;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
listen 443 ssl;
|
||
|
|
||
|
server_name hydra.redalder.org;
|
||
|
|
||
|
include /local/security.conf;
|
||
|
include /local/ssl.conf;
|
||
|
|
||
|
location / {
|
||
|
include /local/headers.conf;
|
||
|
proxy_pass http://hydra;
|
||
|
}
|
||
|
}
|
||
|
|
||
|
server {
|
||
|
listen 443 ssl;
|
||
|
|
||
|
server_name redalder.org nixng.org;
|
||
|
|
||
|
include /local/security.conf;
|
||
|
include /local/ssl.conf;
|
||
|
|
||
|
location /nextcloud/ {
|
||
|
include /local/headers.conf;
|
||
|
proxy_pass http://nextcloud/;
|
||
|
}
|
||
|
|
||
|
location /reicio/ {
|
||
|
include /local/headers.conf;
|
||
|
proxy_pass http://reicio/;
|
||
|
}
|
||
|
|
||
|
location / {
|
||
|
include /local/headers.conf;
|
||
|
proxy_pass http://website;
|
||
|
}
|
||
|
}
|