mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-08 05:56:38 +00:00
optionally generate traefik files, set cors in config, and set trust proxy in config
This commit is contained in:
@@ -20,7 +20,9 @@ const externalPort = config.getRawConfig().server.external_port;
|
||||
export function createApiServer() {
|
||||
const apiServer = express();
|
||||
|
||||
apiServer.set("trust proxy", 1);
|
||||
if (config.getRawConfig().server.trust_proxy) {
|
||||
apiServer.set("trust proxy", 1);
|
||||
}
|
||||
|
||||
const corsConfig = config.getRawConfig().server.cors;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user