Oolite Website Domain & Fixing the Expansions Manager
Moderators: winston, another_commander
- timer
- ---- E L I T E ----
- Posts: 336
- Joined: Sat Mar 17, 2012 8:26 pm
- Location: Laenin spiv club
- Contact:
Re: Oolite Website Domain & Fixing the Expansions Manager
Today I tried to transfer the storage of the main manifest file (catalog) to GitHub, but I could not (
Placing data in the only-static branch (CloudFlare Pages) leads to a forced request via the https protocol, which is not supported by the game manager.
Placing it in the only-media branch (GitHub Pages allow http protocol) leads to the inability to configure the addons subdomain to access GitHub Pages resources. CloudFlare's Free Plan does not allow such manipulations (
As a result, now I see only one solution - rename the media subdomain to addons and reconfigure getting site static from it. This will make possible to get the required address http://addons.oolite.space/api/1.0/overview which will allow access to the catalog placed in GitHub.
Placing data in the only-static branch (CloudFlare Pages) leads to a forced request via the https protocol, which is not supported by the game manager.
Placing it in the only-media branch (GitHub Pages allow http protocol) leads to the inability to configure the addons subdomain to access GitHub Pages resources. CloudFlare's Free Plan does not allow such manipulations (
As a result, now I see only one solution - rename the media subdomain to addons and reconfigure getting site static from it. This will make possible to get the required address http://addons.oolite.space/api/1.0/overview which will allow access to the catalog placed in GitHub.
Cobra MK III owner since 1994
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: Oolite Website Domain & Fixing the Expansions Manager
Just for my curiosity: Why do we differentiate media and static? After all both of them are hosted in the same git repository, and both of them need to be pushed whenever an update happens. So what is different from having all of it in one branch and push that to Github pages, which then still can be referenced from Cloudflare?timer wrote: ↑Mon Aug 21, 2023 7:03 pmToday I tried to transfer the storage of the main manifest file (catalog) to GitHub, but I could not (
Placing data in the only-static branch (CloudFlare Pages) leads to a forced request via the https protocol, which is not supported by the game manager.
Placing it in the only-media branch (GitHub Pages allow http protocol) leads to the inability to configure the addons subdomain to access GitHub Pages resources. CloudFlare's Free Plan does not allow such manipulations (
As a result, now I see only one solution - rename the media subdomain to addons and reconfigure getting site static from it. This will make possible to get the required address http://addons.oolite.space/api/1.0/overview which will allow access to the catalog placed in GitHub.
Sunshine - Moonlight - Good Times - Oolite
-
- Quite Grand Sub-Admiral
- Posts: 6682
- Joined: Wed Feb 28, 2007 7:54 am
Re: Oolite Website Domain & Fixing the Expansions Manager
HTTPS support for the in-game manager is entirely dependent on whether the gnustep-base library has been compiled with TLS support or not. Both Windows and Linux ports support https just fine (well, Linux supported it fine until 1.90, don't know what is happening after that).
Make sure that your gnustep-base library has TLS support. Search for strings like gnutls_init in the binary to find out. If TLS is built into the library, you support https.
Also, did you use the correct download link to get the catalog file? You need the link to the raw contents, anything else will fail. I just tried it myself and downloaded the index successfully from github by putting the below in my .GNUstepDefaults:
Code: Select all
"oxz-index-url" = "https://raw.githubusercontent.com/OoliteProject/oolite-web/only-static/root/api/1.0/overview";
- timer
- ---- E L I T E ----
- Posts: 336
- Joined: Sat Mar 17, 2012 8:26 pm
- Location: Laenin spiv club
- Contact:
Re: Oolite Website Domain & Fixing the Expansions Manager
oh... I just got this (when set https)another_commander wrote: ↑Tue Aug 22, 2023 5:12 amHTTPS support for the in-game manager is entirely dependent on whether the gnustep-base library has been compiled with TLS support or not. Both Windows and Linux ports support https just fine (well, Linux supported it fine until 1.90, don't know what is happening after that).
Make sure that your gnustep-base library has TLS support. Search for strings like gnutls_init in the binary to find out. If TLS is built into the library, you support https.
Also, did you use the correct download link to get the catalog file? You need the link to the raw contents, anything else will fail. I just tried it myself and downloaded the index successfully from github by putting the below in my .GNUstepDefaults:
Code: Select all
"oxz-index-url" = "https://raw.githubusercontent.com/OoliteProject/oolite-web/only-static/root/api/1.0/overview";
Code: Select all
11:58:10.400 [oxz.manager.error]: Error downloading file: A TLS fatal alert has been received.
most often due to the remote end not expecting TLS/SSL
Cobra MK III owner since 1994
- timer
- ---- E L I T E ----
- Posts: 336
- Joined: Sat Mar 17, 2012 8:26 pm
- Location: Laenin spiv club
- Contact:
Re: Oolite Website Domain & Fixing the Expansions Manager
After the first deployment in CF, I split the repository - deploy more than a hundred megabytes after changing one line of the config is not pleasure... It must be remembered that we are deploying different parts of the project to different systems - media in GitHub Pages (we want free access and storage for media), code in CloudFlare Pages. Megabytes of media files does not apply to our code at all. Not possible set the same subdomain names for GH Pages and CF Pages.hiran wrote: ↑Mon Aug 21, 2023 7:43 pmJust for my curiosity: Why do we differentiate media and static? After all both of them are hosted in the same git repository, and both of them need to be pushed whenever an update happens. So what is different from having all of it in one branch and push that to Github pages, which then still can be referenced from Cloudflare?
The code should be separate - it takes less than a megabyte, and pictures and data are more than a hundred (and this volume will grow).
IMHO, it was necessary to create a two new separate repo for site (and move all code files there) and repo for media (images+news+articles etc.), then (for example) it would be possible to give rights on media repo other participants to upload beautiful screenshots,news,articles etc. that will automatically be activated on the site.
Cobra MK III owner since 1994
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: Oolite Website Domain & Fixing the Expansions Manager
I think we should not move compilation dependencies onto a site admin. Let us rather check if the (pre)releases we create (and that is currently through Github Actions) build it sufficiently or not.another_commander wrote: ↑Tue Aug 22, 2023 5:12 amHTTPS support for the in-game manager is entirely dependent on whether the gnustep-base library has been compiled with TLS support or not. Both Windows and Linux ports support https just fine (well, Linux supported it fine until 1.90, don't know what is happening after that).
Make sure that your gnustep-base library has TLS support. Search for strings like gnutls_init in the binary to find out. If TLS is built into the library, you support https.
Sunshine - Moonlight - Good Times - Oolite
Re: Oolite Website Domain & Fixing the Expansions Manager
Is it just me or is the website (http://oolite.space/) no longer updating the Latest Expansion Releases? This is referencing the list along the lower right hand side of the site. Fortunately there are alternatives to finding the latest and greatest new uploads if one knows how to find them but such knowledge is generally limited to those of us who have been around the Eight for a time. New players would tend to rely on the aforementioned list. Please advise.
Humor is the second most subjective thing on the planet
Brevity is the soul of wit and vulgarity is wit's downfall
Good Night and Good Luck - Read You Soon
Brevity is the soul of wit and vulgarity is wit's downfall
Good Night and Good Luck - Read You Soon
- timer
- ---- E L I T E ----
- Posts: 336
- Joined: Sat Mar 17, 2012 8:26 pm
- Location: Laenin spiv club
- Contact:
Re: Oolite Website Domain & Fixing the Expansions Manager
Ohh :(Nite Owl wrote: ↑Fri Sep 08, 2023 4:25 pmIs it just me or is the website (http://oolite.space/) no longer updating the Latest Expansion Releases?
Plz see this post for details.
On OXP page info is actual.
Cobra MK III owner since 1994
Re: Oolite Website Domain & Fixing the Expansions Manager
Thank You Timer for all of your efforts in keeping the Home Page going.
The OXP page is what has been used by me to keep up to date with the Latest Releases. As a bit of an Oolite veteran that maneuver was obvious to me but may not be so obvious to our newer members. Have every confidence that you will get it to all work out in the end.
The OXP page is what has been used by me to keep up to date with the Latest Releases. As a bit of an Oolite veteran that maneuver was obvious to me but may not be so obvious to our newer members. Have every confidence that you will get it to all work out in the end.
Humor is the second most subjective thing on the planet
Brevity is the soul of wit and vulgarity is wit's downfall
Good Night and Good Luck - Read You Soon
Brevity is the soul of wit and vulgarity is wit's downfall
Good Night and Good Luck - Read You Soon
- timer
- ---- E L I T E ----
- Posts: 336
- Joined: Sat Mar 17, 2012 8:26 pm
- Location: Laenin spiv club
- Contact:
Re: Oolite Website Domain & Fixing the Expansions Manager
Good news!
Subdomain media renamed to addons - now http://addons.oolite.space/api/1.0/overview serving from GitHub! Not from my VPS.
Now my VPS doing only one job - check origin http://addons.oolite.org/api/1.0/overview and if it changed - upload it to GitHub.
And just now I updated site code - now Latest OXP News takes from oxp.json data file and we can see last 5 updated OXP on main page!
P.S.: I remind you that the manifest editor lives here: http://old.oolite.space/admin/
Subdomain media renamed to addons - now http://addons.oolite.space/api/1.0/overview serving from GitHub! Not from my VPS.
Now my VPS doing only one job - check origin http://addons.oolite.org/api/1.0/overview and if it changed - upload it to GitHub.
And just now I updated site code - now Latest OXP News takes from oxp.json data file and we can see last 5 updated OXP on main page!
P.S.: I remind you that the manifest editor lives here: http://old.oolite.space/admin/
Cobra MK III owner since 1994
- hiran
- Theorethicist
- Posts: 2403
- Joined: Fri Mar 26, 2021 1:39 pm
- Location: a parallel world I created for myself. Some call it a singularity...
Re: Oolite Website Domain & Fixing the Expansions Manager
Mind the difference:timer wrote: ↑Mon Sep 11, 2023 6:11 pmGood news!
Subdomain media renamed to addons - now http://addons.oolite.space/api/1.0/overview serving from GitHub! Not from my VPS.
Now my VPS doing only one job - check origin http://addons.oolite.org/api/1.0/overview and if it changed - upload it to GitHub.
https://addons.oolite.space/api/1.0/overview
https://addons.oolite.space/api/1.0/overview/
Sunshine - Moonlight - Good Times - Oolite
- phkb
- Impressively Grand Sub-Admiral
- Posts: 4830
- Joined: Tue Jan 21, 2014 10:37 pm
- Location: Writing more OXPs, because the world needs more OXPs.
Re: Oolite Website Domain & Fixing the Expansions Manager
Is this the reason why the expansion manager was unable to download the OXP list until I removed the "ü" from one of the expansions?timer wrote: ↑Mon Sep 11, 2023 6:11 pmSubdomain media renamed to addons - now http://addons.oolite.space/api/1.0/overview serving from GitHub! Not from my VPS.
Now my VPS doing only one job - check origin http://addons.oolite.org/api/1.0/overview and if it changed - upload it to GitHub.
Also, it would be good to get the link updated for the manifest editor on the OXP list page. Clicking on it currently says "Work in progress".
- timer
- ---- E L I T E ----
- Posts: 336
- Joined: Sat Mar 17, 2012 8:26 pm
- Location: Laenin spiv club
- Contact:
Re: Oolite Website Domain & Fixing the Expansions Manager
yep - it maybe a problem... url without slash - "give me this file", url with trailing slash is mean "show index file of directory"
What is the default option in the config file? If second - it is problem :(
Cobra MK III owner since 1994
- timer
- ---- E L I T E ----
- Posts: 336
- Joined: Sat Mar 17, 2012 8:26 pm
- Location: Laenin spiv club
- Contact:
Re: Oolite Website Domain & Fixing the Expansions Manager
I don't know what happened, but now the origin server is delivering a file with a corrupted UTF-8 character. Yesterday I checked it many times, downloading the file manually - one byte FC instead of two bytes C3 BC. Now I have installed post-processing that corrects the symbol.
done
Cobra MK III owner since 1994
- phkb
- Impressively Grand Sub-Admiral
- Posts: 4830
- Joined: Tue Jan 21, 2014 10:37 pm
- Location: Writing more OXPs, because the world needs more OXPs.
Re: Oolite Website Domain & Fixing the Expansions Manager
Well, I've put the "ü" character back into the OXP description where it was before. I guess we'll see what happens!timer wrote: ↑Tue Sep 12, 2023 1:16 amI don't know what happened, but now the origin server is delivering a file with a corrupted UTF-8 character. Yesterday I checked it many times, downloading the file manually - one byte FC instead of two bytes C3 BC. Now I have installed post-processing that corrects the symbol.