app-backend: log when running in protected mode
Signed-off-by: Patrik Oldsberg <poldsberg@gmail.com>
This commit is contained in:
@@ -171,6 +171,10 @@ export async function createRouter(
|
||||
(await fs.pathExists(publicDistDir)) && auth && httpAuth;
|
||||
|
||||
if (enablePublicEntryPoint && auth && httpAuth) {
|
||||
logger.info(
|
||||
`App is running in protected mode, serving public content from ${publicDistDir}`,
|
||||
);
|
||||
|
||||
const publicRouter = Router();
|
||||
|
||||
publicRouter.use(async (req, _res, next) => {
|
||||
|
||||
Reference in New Issue
Block a user