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;
|
||||
|
||||
staticConfigOptions = {
|
||||
entryPoints = {
|
||||
web = {
|
||||
address = ":80";
|
||||
asDefault = true;
|
||||
http.redirections.entrypoint = {
|
||||
to = "websecure";
|
||||
scheme = "https";
|
||||
|
|
@ -15,7 +13,6 @@
|
|||
|
||||
websecure = {
|
||||
address = ":443";
|
||||
asDefault = true;
|
||||
http.tls.certResolver = "letsencrypt";
|
||||
};
|
||||
};
|
||||
|
|
@ -33,24 +30,30 @@
|
|||
};
|
||||
|
||||
api.dashboard = true;
|
||||
# Access the Traefik dashboard on <Traefik IP>:8080 of your server
|
||||
# api.insecure = true;
|
||||
};
|
||||
|
||||
dynamicConfigOptions = {
|
||||
http = {
|
||||
routers.xray = {
|
||||
routers = {
|
||||
xray = {
|
||||
rule = "Host(`v2.kittykat.poggerer.xyz`)";
|
||||
entryPoints = [ "websecure" ];
|
||||
service = "xray";
|
||||
tls.certResolver = "letsencrypt";
|
||||
tls = {
|
||||
certResolver = "letsencrypt";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
services.myapp.loadBalancer.servers = [
|
||||
services = {
|
||||
xray = {
|
||||
loadBalancer = {
|
||||
servers = [
|
||||
{ url = "http://127.0.0.1:2053"; }
|
||||
];
|
||||
};
|
||||
|
||||
|
||||
};
|
||||
|
||||
};
|
||||
};
|
||||
};
|
||||
};
|
||||
Loading…
Add table
Add a link
Reference in a new issue