Skip to content

Commit

Permalink
web container working...
Browse files Browse the repository at this point in the history
  • Loading branch information
btopro committed Oct 17, 2024
1 parent d3f1ecc commit 31dfa26
Show file tree
Hide file tree
Showing 15 changed files with 341 additions and 103 deletions.
5 changes: 4 additions & 1 deletion src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@ if (process.env.HAXCMS_DISABLE_JWT_CHECKS || argv._.includes('HAXCMS_DISABLE_JWT
// routes with all requires
const { RoutesMap, OpenRoutes } = require('./lib/RoutesMap.js');
// app settings
const multer = require('multer')
const multer = require('multer');
const { crossOriginOpenerPolicy } = require('helmet');
const upload = multer({ dest: path.join(HAXCMS.configDirectory, 'tmp/') })
let publicDir = path.join(__dirname, '/public');
// if in development, live reload
Expand All @@ -46,6 +47,8 @@ app.use(express.urlencoded({limit: '50mb', extended: false, parameterLimit: 500
app.use(helmet({
contentSecurityPolicy: false,
crossOriginResourcePolicy: false,
crossOriginEmbedderPolicy: 'require-corp',
crossOriginOpenerPolicy: 'same-origin',
referrerPolicy: {
policy: ["origin", "unsafe-url"],
},
Expand Down

Large diffs are not rendered by default.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 31dfa26

Please sign in to comment.