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

Set config.json to serve Drummer blog and render/serve local html/opml files? #28

Open
sbwaters opened this issue Feb 15, 2022 · 3 comments

Comments

@sbwaters
Copy link

Using pagePark on Digital Ocean droplet. [It works!] In pagePark, tried config.json of :
{
"urlSiteContents": "http://oldschool.scripting.com/sbwTweet"
}
In browser, the blog rendered, but then browser would show locally stored ".opml" files unrendered.

Then tried:
{
"defaultExtension": "opml",
"urlSiteContents": {
"/": { "http://oldschool.scripting.com/sbwTweet"
}
}
Browser showed local ".opml" file rendered, but browser showed blog as a 404.

Goal is to get Drummers’ Blog, Links, and About to show in browser and then serve other ".html" and ."opml" files to serve/render from pagePark files in the domains folder.

Didn’t find in the docs, comments where this is addressed. Thank you for help and or pointers.

@scripting
Copy link
Owner

The best way to approach this imho, is to forget for a moment what you're telling PP to do, but rather, what you want to be done.

And write it down, carefully, using common web terminology, so that you're sure anyone who understands how the web works will understand what you want to do.

That part is your responsibility. No one can read your mind. And no one can solve problems like that without a clear understanding of what the goal is.

Unscatter this, and you know what -- I don't think you're going to need any help.

@sbwaters
Copy link
Author

Using the http://theviewfromafar.com/ domain hosted on my Digital Ocean pagePark, I want to serve these pages in your cloud-based Drummer:
http://oldschool.scripting.com/sbwTweet/
http://oldschool.scripting.com/sbwTweet/?tab=links
http://oldschool.scripting.com/sbwTweet/?tab=about
as coming from the url http://theviewfromafar.com

Then I want to serve every other page of .md, .opml, and .html from /domains/theviewfromafar.com folders and/or subfolders.

I get stuck on using:
{"urlSiteContents": "http://oldschool.scripting.com/sbwTweet"}
since don’t see in config.jspn how to specify to serve everything else from files local to /domains/theviewfromafar.com

Thank you!

@sbwaters
Copy link
Author

Another specification of the issue: A config.json of:
{
"redirects": {
"/": "http://oldschool.scripting.com/sbwTweet",
"/?tab=links": "http://oldschool.scripting.com/sbwTweet/?tab=links",
"/?tab=about": "http://oldschool.scripting.com/sbwTweet/?tab=about"
}
}
"works" but the web browser displays in the browser URL field:
http://oldschool.scripting.com/sbwTweet
instead of
http://theviewfromafar.com
which is what the config.json attribute "urlContents" would display.
Is there a way to display the original URL rather than the redirected url?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants