Add OUTLINE_* env vars to K8s spec and fix markmark blog impl to use FQ urls
This commit is contained in:
parent
611b73c3c3
commit
005668b46f
@ -110,3 +110,21 @@ spec:
|
||||
name: garrettmills-dev-secrets
|
||||
key: COREID_BASE
|
||||
optional: false
|
||||
- name: OUTLINE_API_URL
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: garrettmills-dev-secrets
|
||||
key: OUTLINE_API_URL
|
||||
optional: false
|
||||
- name: OUTLINE_API_KEY
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: garrettmills-dev-secrets
|
||||
key: OUTLINE_API_KEY
|
||||
optional: false
|
||||
- name: OUTLINE_MM_DOCUMENT_ID
|
||||
valueFrom:
|
||||
secretKeyRef:
|
||||
name: garrettmills-dev-secrets
|
||||
key: OUTLINE_MM_DOCUMENT_ID
|
||||
optional: false
|
||||
|
@ -2,7 +2,6 @@ import * as RSSFeed from 'feed'
|
||||
import {Awaitable, collect, Collection, Inject, Maybe, Singleton} from '@extollo/lib'
|
||||
import {AbstractBlog, BlogBackend, BlogPost, BlogPostFrontMatter, isBlogPostFrontMatter} from './AbstractBlog.service'
|
||||
import {MarkMarkService} from '../MarkMark.service'
|
||||
import {Link} from '../../../markmark/types'
|
||||
import {MarkMarkRenderer} from '../../../markmark/markmark.renderer'
|
||||
|
||||
@Singleton()
|
||||
@ -83,8 +82,9 @@ export class MarkMarkBlog extends AbstractBlog<BlogPostFrontMatter> {
|
||||
}
|
||||
|
||||
getUrl(post: BlogPost): string {
|
||||
const appUrl = this.routing.getAppUrl().toRemote
|
||||
let prefix = this.getBackend().routePrefix
|
||||
if ( !prefix.startsWith('/') ) prefix = `/${prefix}`
|
||||
return `${prefix}/#link-${post.slug}`
|
||||
return `${appUrl}${prefix}/#link-${post.slug}`
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user