remrin

remrin

github
email

Tinkering with the blog

Late at night, I was browsing B station and came across a blog fuxiaochen that I found quite appealing.

I flipped through the blog's repository Github and saw that it referenced Shiro in the Readme.

I planned to get up in the middle of the night to deploy it, but then I thought, without a domain server, I might as well wash up and go to sleep.

I woke up early in the morning and still wanted to work on the blog. I carefully read the deployment documentation and directly ordered the server 4H4G-220G, 55$/Year.

It still hurt a bit, and with the domain remrin.dev costing 12$/Year, my already not-so-wealthy wallet was further strained. Having bought it, I just dove in.

Fortunately, the deployment was relatively simple; with Docker Compose, I started planning to deploy on Vercel, but it kept failing.

Error message

I looked at the logs, and it seemed to be a BUG introduced by the most recent commit Fixed #374.

In a hurry to deploy, I could only use Docker for the blog's frontend.

I won't go into detail about the deployment process since this isn't a tutorial article, but the final result was quite good.

By the way, here's my setup:

I initially used Certbot to apply for the certificate, but later found out that CloudFlare allows direct application, so I used that instead.

The handwritten Nginx reverse proxy mentioned in the tutorial is referring to me.

There's a pitfall to mention here: the certificate provided by CloudFlare cannot be used for regular SSL verification; it's only used for communication between the server and CloudFlare.

So, I needed to apply for a certificate through other means. I used Certbot for automatic application, which can only apply for 90 days at a time, and I needed to configure automatic renewal.

After deploying the blog's frontend, if I found that I couldn't access the Api due to certificate issues, adding a configuration in Server.js could temporarily solve it:

For those configuring the handwritten Nginx reverse proxy, you can refer to my configuration.

Blog Frontend

Server Side

That's it. If you need help, feel free to email me.

This article is synchronized and updated to xLog by Mix Space. The original link is https://remrin.dev/posts/blog/1

Loading...
Ownership of this post data is guaranteed by blockchain and smart contracts to the creator alone.