Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

doc suggestion from IRC #pico.sh @ libera.chat #67

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 11 additions & 3 deletions pgs/html/help.page.tmpl
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,13 @@
pgs supports SPAs! Upload a <code>_redirects</code> file your project:
</p>
<pre>/* /index.html 200</pre>

<p>
Note that the Content Security Policy (CSP) for pages in the pgs.sh domain
prohibits javascript from connecting to other origins.
Pages served by custom domains do not have this restriction.
</p>

</section>

<section id="custom-domain">
Expand All @@ -154,10 +161,11 @@
<pre>CNAME subdomain.yourcustomdomain.com -> {{.Site.Domain}}</pre>
<p>Resulting in:</p>
<pre>subdomain.yourcustomdomain.com. 300 IN CNAME {{.Site.Domain}}.</pre>
<p>And a TXT record to tell Prose what blog is hosted on that domain at the subdomain entry _pgs</p>
<pre>TXT _pgs.subdomain.yourcustomdomain.com -> yourusername</pre>
<p>And a TXT record to tell Prose what project is hosted on that domain at the subdomain entry _pgs</p>
<pre>TXT _pgs.subdomain.yourcustomdomain.com -> username-myproject</pre>
<p>E.g. for user 'erock' and project 'kittens' the result would be:</p>
<p>Resulting in:</p>
<pre>_pgs.subdomain.yourcustomdomain.com. 300 IN TXT "hey"</pre>
<pre>_pgs.subdomain.yourcustomdomain.com. 300 IN TXT "erock-kittens"</pre>
</section>
</main>
{{template "marketing-footer" .}}
Expand Down
Loading