I decided to host blog in OracleCloud Always free object storage. 50Gb is plenty and does not cost me a penny (for now).
I plan to use Rclone to sync local site to the cloud.
I was loosely following guide from Oracle on RClone Cloud Shell refused to start for me, so I just pull all info manually form the GUI.
- Create bucket named blog in OracleCloud
- Upload something, and check “item properties” to get full URL
https://objectstorage.eu-amsterdam-1.oraclecloud.com/n/axpvighhs5ai/b/blog/o/comics-pic.jpeg
eu-amsterdam-1 is a <REGION>
/n/axpvighhs5ai/b/blog/o/ is a prefix in my case - record Namespace: form bucket information, it looks like axpvighhs5ai
- Create new user in Oracle Cloud and denerate access_key/Secret_key under
Identity -> Users -> Username -> Customer Secret Keys
It is BAD that user does not need to have access to everything n OracleCloud. But at this moment I do not know how to set permissions in Oracle. Things would be simpler if I use AWS S3. - put /n/axpvighhs5ai/b/blog/o as prefix in _config_yaml and
https://objectstorage.eu-amsterdam-1.oraclecloud.com
as base URL and regenerate site. It will break local browsing. pkg install rclone
blog:/root@[16:42] # man rclone No manual entry for rclone
This is a fail. No man page? RLY?
- create ~/.rclone.conf for whatever user which doing uploads.
[oracle] type = s3 provider = Other env_auth = false access_key_id = <ACCESS KEY> secret_access_key = <SECRET KEY> endpoint = <NAMESPACE>.compat.objectstorage.<REGION>.oraclecloud.com
rclone sync --dry-run -i /usr/local/www/thttpd/ oracle:/blog
to see what happensrclone sync -i /usr/local/www/thttpd/ oracle:/blog
- Get back to bucket and get url for index.html. Browse to It. You should be able to see your site.
It is still really bad, URL is ugly, CNAME redirection will not work. It hardly can be called a hosting.
But enough for today.