Skip to content

📈 Open source, privacy-first web analytics — a cookie-less Google Analytics alternative with built-in error tracking and performance monitoring. Self-host it or use our cloud. Get started for free!

edit readme

Alper Alkan20127d7060d7
diff --git a/.env.example b/.env.example
index 90b9a9691..4b9e403fb 100644
--- a/.env.example
+++ b/.env.example
@@ -1,4 +1,3 @@
REACT_APP_API_URL=https://example.com/api/
-REACT_APP_TITLE_SUFFIX=| Swetrix
CHOKIDAR_USEPOLLING=true
GENERATE_SOURCEMAP=false
diff --git a/Dockerfile b/Dockerfile
index d8e29b7d1..5885c794f 100644
--- a/Dockerfile
+++ b/Dockerfile
@@ -2,7 +2,6 @@
FROM node:lts-alpine as build
ENV TZ=Etc/UTC
ENV REACT_APP_API_URL="https://example.com/api/"
-ENV REACT_APP_TITLE_SUFFIX="| Swetrix"
ENV CHOKIDAR_USEPOLLING=true
ENV GENERATE_SOURCEMAP=false
RUN apk add --no-cache tzdata && cp /usr/share/zoneinfo/$TZ /etc/localtime
diff --git a/README.md b/README.md
index 34e70776d..741aa6267 100644
--- a/README.md
+++ b/README.md
@@ -1,6 +1,7 @@
<img src="/public/assets/logo_blue.svg" alt="" height="100" />
## Description
+
Swetrix is a privacy-oriented, simple and fully cookie-less web analytics service.\
It provides lots of metrics like unique visitors, live visitors monitoring, custom events, pageviews and many more.
@@ -9,16 +10,33 @@ The service also supports many other features, like dashboard metrics & GDPR exp
The project's purpose is to fight web analytics giants like Google Analytics while providing better quality and experience of using service.
## License
+
Swetrix is released under the GPL v3.0 licence, see [LICENSE](LICENSE).
## Install Swetrix
+
See the API installation process at https://github.com/Swetrix/swetrix-api#readme. \
To selfhost the frontend part of Swetrix, you simply need to set up `.env` variables, install the dependencies (`npm i`), build the code (`npm run build:css` and `npm run build` commands) and host it as a regular React application ([how to host react apps](https://create-react-app.dev/docs/deployment/)).\
On production, swetrix.com uses Cloudflare Pages to host the frontend part of the application.
+### Docker Setup
+
+Swetrix provides Docker a Docker Image based on Alpine, Nginx and Node.
+To use it you just just pull `swetrix/swetrixfe` from dockerhub.
+
+#### Docker Environment Variables
+
+The following environment variables are available, alongside their default values.
+`TZ` = `Etc/UTC` | Sets the Timezone of the Container
+`REACT_APP_API_URL` = `https://example.com/api/` | The URL of the Swetrix API
+`CHOKIDAR_USEPOLLING` = `true` | Toggles polling in Chokidar
+`GENERATE_SOURCEMAP` = `false` | Toggles Sourcemap Generation
+
## Bugs and security
+
Swetrix is open to pull-requests. Feel free to propose new features or submit bug requests via pull reuqests.\
For severe security issues, please contact us at [email protected]
## Contact
+
You can contact us via email at [email protected]