Skip to content

Commit

Permalink
fix some configuration issues
Browse files Browse the repository at this point in the history
  • Loading branch information
ngoerlitz committed Apr 11, 2024
1 parent 4a690c8 commit 1d352bb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .docker/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ server {
gzip_types text/plain text/css application/javascript;

location /api/v1 {
proxy_pass http://localhost:8001/api/v1/;
proxy_pass http://localhost:8001;
}

root /opt/frontend;
Expand Down
10 changes: 5 additions & 5 deletions backend/src/Application.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,14 +34,14 @@ initializeApplication()
application.set("trust proxy", ["loopback", "172.16.0.201"]);

application.use("/api/v1", routerGroup((r: Router) => {
application.use(cookieParser(Config.APP_KEY));
application.use(multer({
r.use(cookieParser(Config.APP_KEY));
r.use(multer({
dest: Config.FILE_TMP_LOCATION
}).array("files"));

application.use(syslogMiddleware);
application.use(router);
application.use(exceptionInterceptorMiddleware);
r.use(syslogMiddleware);
r.use(router);
r.use(exceptionInterceptorMiddleware);
}));

// Start listening
Expand Down
1 change: 1 addition & 0 deletions frontend/src/core/AxiosConfiguration.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ export const AxiosConfiguration: AxiosRequestConfig = {
withCredentials: true,
timeout: 5000,
headers: {
"Content-Type": "multipart/form-data",
"Access-Control-Allow-Origin": "*",
"Access-Control-Allow-Credentials": "true",
"unique-browser-token": window.localStorage.getItem(Config.VATGER_BROWSER_TOKEN_NAME),
Expand Down

0 comments on commit 1d352bb

Please sign in to comment.