traefik
This commit is contained in:
parent
245890d044
commit
a52a5741d3
1 changed files with 51 additions and 48 deletions
|
|
@ -1,12 +1,10 @@
|
||||||
|
services.traefik = {
|
||||||
services.traefik = {
|
|
||||||
enable = true;
|
enable = true;
|
||||||
|
|
||||||
staticConfigOptions = {
|
staticConfigOptions = {
|
||||||
entryPoints = {
|
entryPoints = {
|
||||||
web = {
|
web = {
|
||||||
address = ":80";
|
address = ":80";
|
||||||
asDefault = true;
|
|
||||||
http.redirections.entrypoint = {
|
http.redirections.entrypoint = {
|
||||||
to = "websecure";
|
to = "websecure";
|
||||||
scheme = "https";
|
scheme = "https";
|
||||||
|
|
@ -15,7 +13,6 @@
|
||||||
|
|
||||||
websecure = {
|
websecure = {
|
||||||
address = ":443";
|
address = ":443";
|
||||||
asDefault = true;
|
|
||||||
http.tls.certResolver = "letsencrypt";
|
http.tls.certResolver = "letsencrypt";
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -33,24 +30,30 @@
|
||||||
};
|
};
|
||||||
|
|
||||||
api.dashboard = true;
|
api.dashboard = true;
|
||||||
# Access the Traefik dashboard on <Traefik IP>:8080 of your server
|
|
||||||
# api.insecure = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
dynamicConfigOptions = {
|
dynamicConfigOptions = {
|
||||||
http = {
|
http = {
|
||||||
routers.xray = {
|
routers = {
|
||||||
|
xray = {
|
||||||
rule = "Host(`v2.kittykat.poggerer.xyz`)";
|
rule = "Host(`v2.kittykat.poggerer.xyz`)";
|
||||||
entryPoints = [ "websecure" ];
|
entryPoints = [ "websecure" ];
|
||||||
service = "xray";
|
service = "xray";
|
||||||
tls.certResolver = "letsencrypt";
|
tls = {
|
||||||
|
certResolver = "letsencrypt";
|
||||||
|
};
|
||||||
|
};
|
||||||
};
|
};
|
||||||
|
|
||||||
services.myapp.loadBalancer.servers = [
|
services = {
|
||||||
|
xray = {
|
||||||
|
loadBalancer = {
|
||||||
|
servers = [
|
||||||
{ url = "http://127.0.0.1:2053"; }
|
{ url = "http://127.0.0.1:2053"; }
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
};
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
|
};
|
||||||
Loading…
Add table
Add a link
Reference in a new issue