mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-05-26 20:49:55 +00:00
Add Sentry Relay
This commit is contained in:
@@ -1,5 +1,5 @@
|
|||||||
const rootDomain = process.env.VITE_DOMAIN; // or your server IP for dev
|
const rootDomain = process.env.VITE_DOMAIN; // or your server IP for dev
|
||||||
|
import { SENTRY_HOST } from './src/lib/config.js';
|
||||||
import { SENTRY_REPORT_URL } from './src/lib/config.js';
|
import { SENTRY_REPORT_URL } from './src/lib/config.js';
|
||||||
/**
|
/**
|
||||||
* @type {import("@sveltejs/kit").CspDirectives}
|
* @type {import("@sveltejs/kit").CspDirectives}
|
||||||
@@ -7,7 +7,7 @@ import { SENTRY_REPORT_URL } from './src/lib/config.js';
|
|||||||
const cspDirectives = {
|
const cspDirectives = {
|
||||||
'base-uri': ["'self'"],
|
'base-uri': ["'self'"],
|
||||||
'child-src': ["'self'", "blob:"],
|
'child-src': ["'self'", "blob:"],
|
||||||
'connect-src': ["'self'", "https://*.google-analytics.com", "https://*.sentry.io"],
|
'connect-src': ["'self'", "https://*.google-analytics.com", "https://" + SENTRY_HOST],
|
||||||
// 'connect-src': ["'self'", 'ws://localhost:*', 'https://hcaptcha.com', 'https://*.hcaptcha.com'],
|
// 'connect-src': ["'self'", 'ws://localhost:*', 'https://hcaptcha.com', 'https://*.hcaptcha.com'],
|
||||||
'img-src': ["'self'", 'data:',
|
'img-src': ["'self'", 'data:',
|
||||||
'https://*.googletagmanager.com'],
|
'https://*.googletagmanager.com'],
|
||||||
|
|||||||
@@ -1,6 +1,7 @@
|
|||||||
|
|
||||||
// Sentry config
|
// Sentry config
|
||||||
export const SENTRY_HOST = "o4507835405369344.ingest.de.sentry.io"
|
// export const SENTRY_HOST = "o4507835405369344.ingest.de.sentry.io"
|
||||||
|
export const SENTRY_HOST = "relay.ellis.link"
|
||||||
export const SENTRY_PROJECT_ID = "4507835410481232"
|
export const SENTRY_PROJECT_ID = "4507835410481232"
|
||||||
export const SENTRY_KEY = "d006c73cc53783930a1521a68ae1c312"
|
export const SENTRY_KEY = "d006c73cc53783930a1521a68ae1c312"
|
||||||
export const SENTRY_TUNNEL_ALLOWED_IDS = [SENTRY_PROJECT_ID]
|
export const SENTRY_TUNNEL_ALLOWED_IDS = [SENTRY_PROJECT_ID]
|
||||||
|
|||||||
@@ -0,0 +1,39 @@
|
|||||||
|
# sudo mkdir /etc/sentry-relay
|
||||||
|
# podman run --rm -it -v /etc/sentry-relay/:/work/.relay/:z --entrypoint bash getsentry/relay -c 'chown -R relay:relay /work/.relay'
|
||||||
|
# podman run --rm -it -v /etc/sentry-relay/:/work/.relay/:z getsentry/relay config init
|
||||||
|
# podman run --rm -it -v /etc/sentry-relay/:/work/.relay/:z getsentry/relay credentials show
|
||||||
|
# Or add static config
|
||||||
|
|
||||||
|
[Unit]
|
||||||
|
Description=Sentry Relay
|
||||||
|
Wants=network-online.target
|
||||||
|
After=network-online.target
|
||||||
|
|
||||||
|
[Container]
|
||||||
|
ContainerName=sentry-relay
|
||||||
|
NoNewPrivileges=true
|
||||||
|
Image=docker.io/getsentry/relay:latest
|
||||||
|
Exec=run
|
||||||
|
Volume=/etc/sentry-relay/:/work/.relay/:z
|
||||||
|
AutoUpdate=registry
|
||||||
|
Network=web.network
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
Label="traefik.enable=true"
|
||||||
|
Label="traefik.http.routers.sentry-relay.rule=Host(`relay.ellis.link`)"
|
||||||
|
|
||||||
|
Label="traefik.http.routers.sentry-relay.entrypoints=https"
|
||||||
|
|
||||||
|
Label="traefik.http.routers.sentry-relay.tls.certresolver=letsencrypt"
|
||||||
|
# Label="traefik.http.routers.sentry-relay.tls.options=intermediate@file"
|
||||||
|
|
||||||
|
Label="traefik.http.routers.sentry-relay.middlewares=default@file"
|
||||||
|
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Restart=on-failure
|
||||||
|
TimeoutStartSec=900
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=default.target
|
||||||
Reference in New Issue
Block a user