add: /uploaded_dicom for pydicom-google-upload to get shortlink

This commit is contained in:
mario
2025-05-16 10:36:19 +07:00
parent 28339e855c
commit 36417fe515
7 changed files with 283 additions and 15 deletions

View File

@@ -31,6 +31,7 @@ type Config struct {
AccessTokenExpiry int `mapstructure:"access_token_expiry"` // in minutes
RefreshTokenExpiry int `mapstructure:"refresh_token_expiry"` // in hours
EnableDatabaseAuth bool `mapstructure:"enable_database_auth"`
PydicomApiKey string `mapstructure:"pydicom_api_key"` // API Key for PYDICOM uploader service
} `mapstructure:"auth"`
Shortlink struct {

View File

@@ -18,10 +18,11 @@ auth:
access_token_expiry: 1440 # minutes (24 hours)
refresh_token_expiry: 168 # hours (7 days)
enable_database_auth: true # Changed to true to use database
pydicom_api_key: "2f0ff447b2c3aeef2004e83a750ded97e29ba8c0ccc70053d5e26f5d715e42ff"
shortlink:
base_url: "http://localhost:3333" # The base URL for generated OHIF Auth shortlinks
default_expiry_hours: 24 # Default expiry time for shortlinks (1 day)
default_expiry_hours: 30 * 24 # Default expiry time for shortlinks (30 days)
max_attempts: 5 # Maximum number of failed login attempts
database: