Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
backend_api
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Package registry
Container registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
videoag
backend_api
Commits
8d50efd3
Commit
8d50efd3
authored
1 year ago
by
Simon Künzel
Browse files
Options
Downloads
Patches
Plain Diff
Replace SERVER_NAME config key as flask doesn't like it
parent
eac88a38
No related branches found
No related tags found
No related merge requests found
Checking pipeline status
Changes
2
Pipelines
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
config/api_example_config.py
+1
-1
1 addition, 1 deletion
config/api_example_config.py
src/api/routes/site.py
+1
-1
1 addition, 1 deletion
src/api/routes/site.py
with
2 additions
and
2 deletions
config/api_example_config.py
+
1
−
1
View file @
8d50efd3
...
...
@@ -2,7 +2,7 @@
DEBUG
=
True
# Name of this instance
SERVER_NAME
=
"
dev
"
API_
SERVER_NAME
=
"
dev
"
# Prefix which is prepended to paths (which are saved in the database) before they are provided by the api
# Must include the last /
...
...
This diff is collapsed.
Click to expand it.
src/api/routes/site.py
+
1
−
1
View file @
8d50efd3
...
...
@@ -11,7 +11,7 @@ _GIT_COMMIT_HASH = os.environ.get("VIDEOAG_API_GIT_COMMIT_HASH", None)
if
_GIT_COMMIT_HASH
is
not
None
and
len
(
_GIT_COMMIT_HASH
)
==
0
:
_GIT_COMMIT_HASH
=
None
_SERVER_NAME
=
api
.
config
[
"
SERVER_NAME
"
]
_SERVER_NAME
=
api
.
config
[
"
API_
SERVER_NAME
"
]
@api_route
(
"
/status
"
,
[
"
GET
"
],
allow_while_readonly
=
True
,
allow_while_disabled
=
True
)
...
...
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