chore: add stub .env file during build

This commit is contained in:
Nicolas Meienberger 2023-10-10 21:19:54 +02:00
parent e0865f1326
commit 9def6bc4d9
5 changed files with 20 additions and 1741 deletions

View file

@ -3,11 +3,11 @@ APPS_REPO_URL=https://github.com/meienberger/runtipi-appstore
TZ=Etc/UTC
INTERNAL_IP=localhost
DNS_IP=9.9.9.9
ARCHITECTURE=arm64 # arm64 or amd64
ARCHITECTURE=arm64
TIPI_VERSION=1.5.2
JWT_SECRET=secret
ROOT_FOLDER_HOST=/path/to/runtipi # absolute path to the root folder of the runtipi installation
STORAGE_PATH=/path/to/runtipi # absolute path to the root folder of the runtipi installation
ROOT_FOLDER_HOST=/path/to/runtipi
STORAGE_PATH=/path/to/runtipi
NGINX_PORT=7000
NGINX_PORT_SSL=443
DOMAIN=tipi.localhost

View file

@ -26,6 +26,7 @@ COPY ./tsconfig.json ./tsconfig.json
COPY ./next.config.mjs ./next.config.mjs
COPY ./public ./public
COPY ./tests ./tests
COPY ./.env.example ./.env
RUN npm run build

File diff suppressed because it is too large Load diff

View file

@ -49,7 +49,11 @@ const productionLogger = () => {
return createLogger({
level: 'info',
format: combinedLogFormat,
transports: [],
transports: [
new transports.Console({
level: 'info',
}),
],
});
}
};

View file

@ -54,12 +54,12 @@ export class TipiConfig {
this.config = parsedConfig.data;
} else {
const errors = formatErrors(parsedConfig.error.flatten());
Logger.error(`❌ Invalid env config\n\n${errors}`);
throw new Error('Invalid env config');
Logger.error(`❌ Invalid env config ${JSON.stringify(errors)}`);
throw new Error(`Invalid env config ${JSON.stringify(errors)}`);
}
} else {
const errors = formatErrors(parsedFileConfig.error.flatten());
Logger.error(`❌ Invalid settings.json file:\n${errors}`);
Logger.error(`❌ Invalid settings.json file: ${JSON.stringify(errors)}`);
throw new Error('Invalid settings.json file');
}
}