traefik: add cors
This commit is contained in:
parent
05583e3c15
commit
cb6ef9c31a
1 changed files with 6 additions and 0 deletions
|
@ -33,6 +33,11 @@
|
|||
redirectscheme.scheme = "https";
|
||||
redirectscheme.permanent = true;
|
||||
};
|
||||
cors = {
|
||||
headers = {
|
||||
accessControlAllowOriginList = "https://daphbot.notohh.dev";
|
||||
};
|
||||
};
|
||||
};
|
||||
routers = {
|
||||
api = {
|
||||
|
@ -117,6 +122,7 @@
|
|||
service = "forgejo";
|
||||
tls.domains = [{main = "*.flake.sh";}];
|
||||
tls.certresolver = "production";
|
||||
middlewares = "cors";
|
||||
};
|
||||
rustypaste-insecure = {
|
||||
rule = "Host(`i.flake.sh`)";
|
||||
|
|
Loading…
Reference in a new issue