Skip to content

Commit efb17d0

Browse files
Update README.md docs
1 parent 35fed39 commit efb17d0

File tree

7 files changed

+32
-26
lines changed

7 files changed

+32
-26
lines changed

README.md

+7-7
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,16 @@ Visit our website at https://compbio.imm.medicina.ulisboa.pt!
55
This project uses:
66
- [Docker Compose][] to manage multiple Docker containers
77
- [Nginx][] as a reverse proxy (i.e. to redirect URLs), to serve SSL
8-
certificates and to show a public folder
8+
certificates and to show a [public](nginx/public) folder
99
- [ShinyProxy][] to run R/Shiny and Python apps via Docker
1010
- [Celery][] to run background tasks via a job queue system
1111
- [Flower][] to monitor Celery and to send jobs to Celery via its REST API
1212
- [Redis][] to serve as message broker for celery
1313
- [Prometheus][] and [Grafana][] to log and visualise ShinyProxy and Celery data
1414
- [RStudio Server][] to test code on-the-fly
15-
- [Plausible][] for (multiple) website analytics
16-
- [Postgres][] database for Plausible's user data
17-
- [Clickhouse][] database for Plausible's analytics
15+
- [Plausible][] analytics to gather traffic metrics of multiple websites
16+
- [Postgres][] database (Plausible's user data)
17+
- [Clickhouse][] database (Plausible's analytics)
1818

1919
[Docker Compose]: https://docs.docker.com/compose/
2020
[ShinyProxy]: https://shinyproxy.io
@@ -56,8 +56,8 @@ to avoid restarting the whole server
5656
### Next steps
5757

5858
- [Add and update apps in ShinyProxy](shinyproxy)
59-
- [Monitor website analytics](plausible)
60-
- [Renew SSL certificates](nginx)
59+
- [Monitor website analytics with Plausible](plausible)
60+
- [Renew SSL certificates in Nginx](nginx)
6161

6262
## Relevant assets
6363

@@ -68,7 +68,7 @@ Asset | Description
6868
[`shinyproxy/application.yml`][application.yml] | ShinyProxy configuration (including Shiny apps)
6969
[`shinyproxy/templates`](shinyproxy/templates) | ShinyProxy custom HTML files
7070
[`celery/tasks.py`](celery/tasks.py) | Celery tasks
71-
[`public`](public) | Publicly available data downloadable at [`/public`][public]
71+
[`public`](nginx/public) | Publicly available data downloadable at [`/public`][public]
7272

7373
[application.yml]: shinyproxy/application.yml
7474
[nginx.conf]: nginx/nginx.conf

docker-compose.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ services:
1010
volumes:
1111
- ./nginx:/etc/nginx
1212
- /etc/ssl/imm:/etc/nginx/certs:ro
13-
- ./public:/public:ro
13+
- ./nginx/public:/public:ro
1414
depends_on:
1515
- shinyproxy
1616
- flower
@@ -52,14 +52,14 @@ services:
5252
- GF_AUTH_ANONYMOUS_HIDE_VERSION=true
5353

5454
redis:
55+
image: redis:6-alpine
5556
container_name: redis
56-
image: redis:alpine
5757
ports:
5858
- 6379:6379
5959

6060
prometheus:
61-
container_name: prometheus
6261
image: prom/prometheus
62+
container_name: prometheus
6363
volumes:
6464
- ./prometheus:/etc/prometheus:ro
6565
- prometheus-data:/prometheus

nginx/README.md

+10-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
1-
# CompBio App Server - Nginx configuration
1+
# Nginx
2+
3+
[Nginx][] is the orchestrator of the server behind-the-scenes and responsible
4+
for the following:
5+
6+
- Reverse proxy (i.e. URL redirection)
7+
- Serve SSL certificates
8+
- [Public](public) folder: all data in this folder is available to be browsed
9+
and downloaded at [/public](https://compbio.imm.medicina.ulisboa.pt/public)
210

311
## SSL certificate renewal
412

@@ -7,7 +15,7 @@ certificates need to be renewed frequently (e.g. every year). To do so:
715

816
1. Update the SSL certificate files
917

10-
2. In case the filename of the SSL certificate changes, open the file
18+
2. In case the filename of the SSL certificate changes, open
1119
[`nginx.conf`][nginx.conf] and replace the path to the certificates (in
1220
`ssl_certificate` and `ssl_certificate_key`)
1321

File renamed without changes.

plausible/README.md

+6-8
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
1-
# CompBio App Server - Plausible analytics
1+
# Plausible analytics
22

33
[Plausible](plausible.io) is an [open-source][], [privacy-focused][] web
4-
analytics tool that provides website traffic metrics via an interactive
5-
dashboard. This project runs the self-hosted version of Plausible.
4+
analytics tool that provides traffic metrics for multiple websites via an
5+
interactive dashboard. This project runs the self-hosted version of Plausible.
66

77
[open-source]: https://plausible.io/open-source-website-analytics
88
[privacy-focused]: https://plausible.io/privacy-focused-web-analytics
99

10-
Plausible presents (unique) visitor numbers, total page views, session duration
11-
and other useful metrics. All of these metrics are anonymously collected as
12-
aggregated data without using cookies (or other persistent identifiers) and do
13-
not include personally identifiable information. As stated by Plausible's
14-
[data policy][]:
10+
All of Plausible metrics (e.g., visitor numbers, total page views and session
11+
duration) are anonymously aggregated without cookies, thus avoiding individual
12+
tracing. As stated by their [data policy][]:
1513

1614
> By using Plausible, you don’t need to have any GDPR, CCPA or PECR prompts and
1715
you don’t need a complex privacy policy about your use of analytics and

shinyproxy/README.md

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
# CompBio App Server - ShinyProxy configuration
1+
# ShinyProxy
22

3-
## Add new apps to ShinyProxy
4-
5-
[ShinyProxy][] deploys Shiny and Python apps via Docker images. Put simply, you
6-
will need to:
3+
[ShinyProxy][] is open-source and allows to deploy R/Shiny and Python apps via
4+
Docker images.
75

86
[ShinyProxy]: https://shinyproxy.io
97

8+
## Add new apps to ShinyProxy
9+
1010
### 1. [Create a Docker image of your app][deploying]
1111

1212
I suggest uploading your Docker image to DockerHub and then pulling it from the

shinyproxy/templates/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
<div class="row">
3131
<div class="col-lg-3 col-md-4 col-sm-6" th:each="app: ${apps}" style="min-height: 140px;">
3232
<h1><a th:href="@{/app/}+${app.id}" th:text="${app.displayName == null} ? ${app.id} : ${app.displayName}"></a></h1>
33-
<p th:if="${app.description != null}" th:text="${app.description}" ></p>
33+
<p th:text="${app.description}" ></p>
3434
</div>
3535
</div>
3636
<hr></hr>

0 commit comments

Comments
 (0)