Author SHA1 Message Date
Djeex 3529834d95 Fixed deprecated path in qbittorent.md 2026-08-25 10:30:54 +00:00
Djeex fd21bd2f83 feat: add canonical URL and og:url
Docus doesn't generate canonical links or og:url natively. A plugin
now injects rel=canonical and og:url per route using nuxt-site-config's
withSiteUrl, which reads site.url from nuxt.config.ts.
2026-08-11 23:10:26 +02:00
2 changed files with 15 additions and 2 deletions
+2 -2
View File
@@ -81,7 +81,7 @@ services:
- gluetun - gluetun
gluetun: gluetun:
image: qmcgaw/gluetun:v3.40.1 image: qmcgaw/gluetun:v3.41.3
container_name: gluetun container_name: gluetun
restart: unless-stopped restart: unless-stopped
mem_limit: 4g mem_limit: 4g
@@ -150,7 +150,7 @@ Press `i` to edit and enter:
```toml ```toml
[[roles]] [[roles]]
name = "t-anc/GSP-Qbittorent-Gluetun-sync-port-mod" name = "t-anc/GSP-Qbittorent-Gluetun-sync-port-mod"
routes = ["GET /v1/openvpn/portforwarded"] routes = ["GET /v1/portforward"]
auth = "apikey" auth = "apikey"
apikey = "your_key_here" # key you just generated apikey = "your_key_here" # key you just generated
``` ```
+13
View File
@@ -0,0 +1,13 @@
export default defineNuxtPlugin(() => {
const route = useRoute()
const canonicalUrl = withSiteUrl(computed(() => route.path), { canonical: true })
useHead({
link: [
{ rel: 'canonical', href: canonicalUrl }
],
meta: [
{ property: 'og:url', content: canonicalUrl }
]
})
})