a6e5c99f562491a34c8b1d69663b9a0c46c9adfe chmalee Tue Jan 14 15:19:38 2025 -0800 Make hubspace tusd endpoint defined by hg.conf variable hubSpaceTusdEndpoint diff --git src/hg/inc/userdata.h src/hg/inc/userdata.h index e51154c..e86c855 100644 --- src/hg/inc/userdata.h +++ src/hg/inc/userdata.h @@ -18,33 +18,30 @@ { struct userHubs *next; char *hubName; // name of this hub char *genome; // only one genome allowed per hub for now char *userName; // for convenience time_t lastModified; // actually last access time but this works struct userFiles *fileList; // list of files (tracks) in the hub }; char *getUserName(); /* Query the right system for the users name */ char *emailForUserName(char *userName); /* Fetch the email for this user from gbMembers hgcentral table */ -//TODO: this should probably come from hg.conf: -#define HUB_SPACE_URL "https://hgwdev.gi.ucsc.edu/hubspace" - // the various quota helper variables: #define HUB_SPACE_DEFAULT_QUOTA_BYTES 10000000000 #define HUB_SPACE_DEFAULT_QUOTA HUB_SPACE_DEFAULT_QUOTA_BYTES // for defining the quota in hg.conf #define HUB_SPACE_CONF_QUOTA_VAR "hubspace.quota" char *webDataDir(char *userName); /* Return a web accesible path to the userDataDir, this is different from the full path tusd uses */ char *getDataDir(char *userName); /* Return the full path to the user specific data directory, can be configured via hg.conf * on hgwdev, this is /data/apache/userdata/userStore/hash/userName/ * on the RR, this is /userdata/userStore/hash/userName/ */ char *stripDataDir(char *fname, char *userName);