Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,10 @@ if [ ! -z "$OSC_HOSTNAME" ]; then
echo "Setting PUBLIC_HOST to $PUBLIC_HOST"

# Extract environment from auto.{env}.osaas.io format
OSC_ENVIRONMENT=$(echo "$OSC_HOSTNAME" | sed 's/.*auto\.\(.*\)\.osaas\.io/\1/')
export OSC_ENVIRONMENT
if [ -z "$OSC_ENVIRONMENT" ]; then
OSC_ENVIRONMENT=$(echo "$OSC_HOSTNAME" | sed 's/.*auto\.\(.*\)\.osaas\.io/\1/')
export OSC_ENVIRONMENT
fi

if [ -z "$OSC_ACCESS_TOKEN" ]; then
echo "OSC_ACCESS_TOKEN is not set. Limited functionality will be available."
Expand Down
11 changes: 6 additions & 5 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@fastify/type-provider-typebox": "^5.1.0",
"@sinclair/typebox": "^0.32.35",
"dotenv": "^16.5.0",
"fastify": "^5.7.3",
"fastify": "^5.8.5",
"mongodb": "^6.16.0",
"nano": "^10.1.4",
"nodemon": "^3.1.10",
Expand Down
2 changes: 0 additions & 2 deletions src/api_productions.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import { Type } from '@sinclair/typebox';
import dotenv from 'dotenv';
import { FastifyPluginCallback } from 'fastify';
import { v4 as uuidv4 } from 'uuid';
import { CoreFunctions } from './api_productions_core_functions';
Expand All @@ -26,7 +25,6 @@ import {
} from './models';
import { ProductionManager } from './production_manager';
import { ISmbProtocol, SmbProtocol } from './smb';
dotenv.config();

export interface ApiProductionsOptions {
smbServerBaseUrl: string;
Expand Down
Loading