62 lines
1.6 KiB
Markdown
62 lines
1.6 KiB
Markdown
# Palantics Tracker Helper
|
|
|
|
A tool that counters anti-tracking measures by removing third-party requests. Your server will do the requests instead.
|
|
|
|
This is the recommended way to setup palantics. But only using the frontend script with the tracker server directly does work as well :)
|
|
|
|
## Installation
|
|
|
|
### 1. Copy or clone this repo to your server
|
|
|
|
```bash
|
|
cp example.env .env
|
|
```
|
|
|
|
Edit your `.env` file and make sure you use the correct tracking server.
|
|
|
|
```bash
|
|
docker-compose up -d
|
|
```
|
|
|
|
### 2. Update your Reverse Proxy config
|
|
|
|
Configure your reverse proxy to catch requests and forward them to Palantics Helper.
|
|
|
|
Remember to set the PORT correctly to match your .env PORT.
|
|
|
|
#### NGINX:
|
|
|
|
```nginx
|
|
location /spur {
|
|
proxy_pass http://127.0.0.1:8101;
|
|
proxy_set_header Host $host;
|
|
proxy_set_header X-Real-IP $remote_addr;
|
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
|
proxy_set_header X-Forwarded-Proto $scheme;
|
|
}
|
|
```
|
|
|
|
#### Traefik:
|
|
|
|
```yaml
|
|
# Traefik configuration
|
|
labels:
|
|
- "traefik.enable=true"
|
|
- "traefik.http.routers.palantics.rule=Host(`yourdomain.com`) && PathPrefix(`/spur`)"
|
|
- "traefik.http.routers.palantics.entrypoints=web,websecure"
|
|
- "traefik.http.routers.palantics.tls=true"
|
|
- "traefik.http.services.palantics.loadbalancer.server.port=8101"
|
|
```
|
|
|
|
### 3. Update Global Server Config
|
|
|
|
In the global server config in your frontend, replace the tracker endpoint with your own domain:
|
|
|
|
```html
|
|
<!-- Global server config -->
|
|
<script>
|
|
const server = "https://karlbreuer.com";
|
|
</script>
|
|
```
|
|
|
|
INSTEAD of your tracker endpoint `https://tracking1.karlbreuer.com` |