Remove Forgejo CORS and nginx /api/ location (no longer needed)
This commit is contained in:
parent
d903626b22
commit
bd9063bae4
1 changed files with 0 additions and 14 deletions
|
|
@ -113,15 +113,6 @@ in {
|
|||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
'';
|
||||
};
|
||||
locations."/api/" = {
|
||||
proxyPass = "http://127.0.0.1:3000";
|
||||
extraConfig = ''
|
||||
proxy_set_header Host $host;
|
||||
proxy_set_header X-Real-IP $remote_addr;
|
||||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||
add_header 'Access-Control-Allow-Origin' 'https://tadix.dev' always;
|
||||
'';
|
||||
};
|
||||
};
|
||||
virtualHosts."biolab.tadix.dev" = {
|
||||
enableACME = true;
|
||||
|
|
@ -213,11 +204,6 @@ in {
|
|||
};
|
||||
service.DISABLE_REGISTRATION = true;
|
||||
log.LEVEL = "Warn";
|
||||
cors = {
|
||||
ENABLED = true;
|
||||
ALLOW_DOMAIN = "tadix.dev";
|
||||
METHODS = "GET,HEAD,OPTIONS";
|
||||
};
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue