Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
containerize
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Deploy
Package registry
Container registry
Operate
Terraform modules
Monitor
Service Desk
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Studio R215
containerize
Commits
8bff6cb5
Commit
8bff6cb5
authored
7 months ago
by
Sebastian Karius
Browse files
Options
Downloads
Patches
Plain Diff
dev coder filebrowser module
parent
717acd4e
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
terraform/filebrowser/run.sh
+3
-1
3 additions, 1 deletion
terraform/filebrowser/run.sh
with
3 additions
and
1 deletion
terraform/filebrowser/run.sh
+
3
−
1
View file @
8bff6cb5
...
...
@@ -17,9 +17,11 @@ if [ "${DB_PATH}" != "filebrowser.db" ]; then
DB_FLAG
=
" -d
${
DB_PATH
}
"
fi
# set baseurl if owner_name and workspace_name is set
# set baseurl if
subdomain = false (
owner_name and workspace_name is set
), else reset to "" for use with subdomain = true
if
[
"
${
OWNER_NAME
}
"
!=
""
]
&&
[
"
${
WORKSPACE_NAME
}
"
!=
""
]
;
then
filebrowser config
set
--baseurl
"/@
${
OWNER_NAME
}
/
${
WORKSPACE_NAME
}
.
${
RESOURCE_NAME
}
/apps/filebrowser"
>
${
LOG_PATH
}
2>&1
else
filebrowser config
set
--baseurl
""
>
${
LOG_PATH
}
2>&1
fi
printf
"📂 Serving
$$
{ROOT_DIR} at http://localhost:
${
PORT
}
\n\n
"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment