Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
N
network
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Code
Merge requests
9
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
funkwhale
network
Commits
15fa5390
Verified
Commit
15fa5390
authored
6 years ago
by
Eliot Berriot
Browse files
Options
Downloads
Patches
Plain Diff
Better homepage
parent
3235ac5f
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
funkwhale_network/index.html
+5
-0
5 additions, 0 deletions
funkwhale_network/index.html
funkwhale_network/routes.py
+4
-1
4 additions, 1 deletion
funkwhale_network/routes.py
funkwhale_network/settings.py
+1
-0
1 addition, 0 deletions
funkwhale_network/settings.py
with
10 additions
and
1 deletion
funkwhale_network/index.html
+
5
−
0
View file @
15fa5390
...
...
@@ -16,6 +16,11 @@
</header>
<p>
Welcome on the Funkwhale Network Observatory, where you can get information about the Funkwhale Network!
</p>
<p>
This project aims to gather anonymous data and statistics about existing Funkwhale servers, to monitor the state of the network.
</li>
<section>
<h2>
Dashboards
</h2>
<p>
We offer a collection of dashboards to dive in the data.
</p>
<a
href=
"{settings.GF_SERVER_ROOT_URL}"
class=
"pure-button pure-button-primary"
>
Go to the dashboards
</a>
</section>
<section>
<h2>
Submit a new instance
</h2>
<p>
If you own an instance and want to see it tracked, simply fill in the instance domain name in the form below.
</p>
...
...
This diff is collapsed.
Click to expand it.
funkwhale_network/routes.py
+
4
−
1
View file @
15fa5390
...
...
@@ -8,6 +8,7 @@ from . import crawler
from
.
import
db
from
.
import
exceptions
from
.
import
serializers
from
.
import
settings
BASE_DIR
=
os
.
path
.
dirname
(
os
.
path
.
abspath
(
__file__
))
STATIC_DIR
=
os
.
path
.
join
(
BASE_DIR
,
"
static
"
)
...
...
@@ -30,7 +31,9 @@ def validate_domain(raw):
async
def
index
(
request
):
with
open
(
os
.
path
.
join
(
BASE_DIR
,
"
index.html
"
),
"
r
"
)
as
f
:
index_html
=
f
.
read
()
return
web
.
Response
(
text
=
index_html
,
content_type
=
"
text/html
"
)
return
web
.
Response
(
text
=
index_html
.
format
(
settings
=
settings
),
content_type
=
"
text/html
"
)
async
def
domains
(
request
):
...
...
This diff is collapsed.
Click to expand it.
funkwhale_network/settings.py
+
1
−
0
View file @
15fa5390
...
...
@@ -21,6 +21,7 @@ from . import middlewares
MIDDLEWARES
=
[
middlewares
.
conn_middleware
]
PORT
=
env
.
int
(
"
APP_PORT
"
,
default
=
8000
)
GF_SERVER_ROOT_URL
=
env
(
"
GF_SERVER_ROOT_URL
"
,
default
=
"
/dashboards/
"
)
REDIS_CONFIG
=
{
"
host
"
:
env
(
"
REDIS_HOST
"
,
default
=
"
localhost
"
),
"
port
"
:
env
.
int
(
"
REDIS_PORT
"
,
default
=
6379
),
...
...
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