Backfill a couple of posts, add Dockerfile to deploy site
All checks were successful
Build and copy to prod / build-and-copy (push) Successful in 1m39s
All checks were successful
Build and copy to prod / build-and-copy (push) Successful in 1m39s
This commit is contained in:
parent
d327feee91
commit
802ae697c3
4
Dockerfile
Normal file
4
Dockerfile
Normal file
@ -0,0 +1,4 @@
|
||||
FROM nginx:alpine
|
||||
|
||||
COPY _site /var/www/html
|
||||
COPY nginx.conf /etc/nginx/conf.d/default.conf
|
86
nginx.conf
Normal file
86
nginx.conf
Normal file
@ -0,0 +1,86 @@
|
||||
server {
|
||||
listen 80;
|
||||
listen [::]:80;
|
||||
listen 443;
|
||||
listen [::]:443;
|
||||
server_name localhost blog.srvc.lol;
|
||||
|
||||
#access_log /var/log/nginx/host.access.log main;
|
||||
|
||||
root /var/www/html;
|
||||
|
||||
location / {
|
||||
try_files $uri $uri/ =404;
|
||||
index index.html;
|
||||
}
|
||||
|
||||
location ~ /blog/feed.xml {
|
||||
return 301 https://lewisdale.dev/feed/;
|
||||
}
|
||||
|
||||
location ~ \.(xml|json) {
|
||||
expires 1h;
|
||||
add_header Cache-Control "public, no-transform";
|
||||
}
|
||||
|
||||
location ~ ^/feed/atom/* {
|
||||
try_files /atom.xml =404;
|
||||
}
|
||||
|
||||
location ~ ^/feed/json/* {
|
||||
try_files /feed.json =404;
|
||||
}
|
||||
|
||||
location ~ ^/feed/?$ {
|
||||
try_files /rss.xml =404;
|
||||
}
|
||||
|
||||
location ~ ^/post/tag/[0-9a-z\-]+/feed/?$ {
|
||||
rewrite /post/tag/([0-9a-z\-]+)/feed/?$ /post/tag/$1/rss.xml last;
|
||||
}
|
||||
|
||||
location ~ ^/post/tag/[0-9a-z\-]+/feed/atom {
|
||||
rewrite /post/tag/([0-9a-z\-]+)/feed/atom /post/tag/$1/atom.xml last;
|
||||
}
|
||||
|
||||
location ~ ^/post/tag/[0-9a-z\-]+/feed/json {
|
||||
rewrite /post/tag/([0-9a-z\-]+)/feed/json /post/tag/$1/feed.json last;
|
||||
}
|
||||
|
||||
location ~\.(ini|log|conf|md|env)$ {
|
||||
deny all;
|
||||
error_page 403 =404 / ;
|
||||
}
|
||||
|
||||
error_page 404 /404.html;
|
||||
|
||||
# redirect server error pages to the static page /50x.html
|
||||
#
|
||||
error_page 500 502 503 504 /50x.html;
|
||||
location = /50x.html {
|
||||
root /usr/share/nginx/html;
|
||||
}
|
||||
|
||||
# proxy the PHP scripts to Apache listening on 127.0.0.1:80
|
||||
#
|
||||
#location ~ \.php$ {
|
||||
# proxy_pass http://127.0.0.1;
|
||||
#}
|
||||
|
||||
# pass the PHP scripts to FastCGI server listening on 127.0.0.1:9000
|
||||
#
|
||||
#location ~ \.php$ {
|
||||
# root html;
|
||||
# fastcgi_pass 127.0.0.1:9000;
|
||||
# fastcgi_index index.php;
|
||||
# fastcgi_param SCRIPT_FILENAME /scripts$fastcgi_script_name;
|
||||
# include fastcgi_params;
|
||||
#}
|
||||
|
||||
# deny access to .htaccess files, if Apache's document root
|
||||
# concurs with nginx's one
|
||||
#
|
||||
#location ~ /\.ht {
|
||||
# deny all;
|
||||
#}
|
||||
}
|
36
src/blog/posts/2023/3/new-bike-sort-of.md
Normal file
36
src/blog/posts/2023/3/new-bike-sort-of.md
Normal file
@ -0,0 +1,36 @@
|
||||
---json
|
||||
{
|
||||
"title": "New bike (sort of)",
|
||||
"date": "2023-03-29T10:12:15.209Z",
|
||||
"tags": [
|
||||
"cycling",
|
||||
"BikeTooter"
|
||||
]
|
||||
}
|
||||
---
|
||||
|
||||
Well, new to me at least. Last weekend I went to a local renew hub - a recycling centre, where donated bikes are repaired and then sold on at a discounted price. I picked up this absolute beauty of a bike:
|
||||
|
||||
![A well-worn Peugeot bike with black handlebars, a very faded saddle, and very 80's decals along the side.](https://cdn.some.pics/lewis/64241d831e374.jpg?width=500&quality=80)
|
||||
|
||||
I'm not 100% certain what model it is. The "Esprit" sticker on the side is a red-herring, apparently Peugeot just slapped that decal on frames. The serial under the bottom bracket says P10S, which _is_ a real model, so that seems like the likely candidate. Which means this bike is roughly 40 years old.
|
||||
|
||||
## Giving it a refresh
|
||||
|
||||
It's obviously a bit worse for wear right now. The renew hub have made it safe to ride, but I'd like it to also _look_ good. First up was some fresh handlebar tape; the old tape was falling off anyway, and I think the orange looks good:
|
||||
|
||||
![A vintage Peugeot bike leaning against a fence. It has orange handlebars, and a black frame, with extremely-80's red-yellow gradient text on the frame.](https://cdn.some.pics/lewis/6423e0c205376.jpg?width=500&quality=80)
|
||||
|
||||
Next up is restoring the saddle. It's made of suede, so a standard leather dye might not take too well. But my local shoe repair shop does suede dye! I made a judgement call and assumed that it would look decent in all-black, and that would also cover up any mistakes. I've done one coat so far and to be honest, I'm really happy with it.
|
||||
|
||||
![The bike saddle, no longer looking like it was pulled out of a bin.](https://cdn.some.pics/lewis/64241ecc1868b.jpg?width=500&quality=80)
|
||||
|
||||
You can't make it out on the picture, but there is the faint outline where a badge was once on the saddle - it looks like this is actually a [Selle San Marco Corsaire](https://cycletrade.co.uk/products/vintage-saddle-vintage-saddle-san-marco-corsaire-313-grade-b) saddle, which is nice.
|
||||
|
||||
Finally, so far I've also been able to adjust the handlebars - the stem was seized, so I unscrewed the top bolt a little, and then gave it a good whack with a hammer. That freed the wedge inside the frame, allowing me to raise the bars a little.
|
||||
|
||||
## Next steps
|
||||
|
||||
Next I want to sort out all of the chrome components - they're all quite faded and rusty right now. That means taking them off, scrubbing them down, and then dowsing them in chrome polish.
|
||||
|
||||
I'll do the same to the original pedals, Lyotard 136Rs, which are cool but right now look _awful_. They should polish up nicely, but the spindles are quite stiff, and I'm not sure if it's possible to service the bearings in them fully (some models of Lyotard pedals have bearings that are sealed-in and can't be removed). If I can't, I'll probably just try and get some grease down the side to give them a bit more movement.
|
44
src/blog/posts/2023/4/peugeot-refurb-part-2.md
Normal file
44
src/blog/posts/2023/4/peugeot-refurb-part-2.md
Normal file
@ -0,0 +1,44 @@
|
||||
---json
|
||||
{
|
||||
"title": "Peugeot refurb: part 2",
|
||||
"date": "2023-04-04T11:13:33.841Z",
|
||||
"tags": [
|
||||
"cycling",
|
||||
"BikeTooter"
|
||||
]
|
||||
}
|
||||
---
|
||||
|
||||
Time for the next part of my on-going effort to refurbish a new-to-me 1980's Peugeot road bike. Last week I dyed the saddle, which had been worn away after years of use, as well as wrapped the handlebars with fresh tape.
|
||||
|
||||
## Pedals!
|
||||
|
||||
The first thing I wanted to do was get the original Lyotard pedals back on, but they were extremely worn and rusty, and the spindles didn't move freely. Thankfully, a scouring pad, bicarbonate of soda, and a little bit of grease solved those problems. They don't look _perfect_, especially the cap on the left-hand-side pedal, but compared to how they were when I get them they look great.
|
||||
|
||||
Before:
|
||||
|
||||
![A before shot of a metal bike pedal with foot cage, severely rusted](https://cdn.some.pics/lewis/642c155428170.jpg?width=500&quality=80)
|
||||
|
||||
After:
|
||||
![An after shot of the pedal, with the cage removed, but looking much shinier](https://cdn.some.pics/lewis/642c157d210b7.jpg?width=500&quality=80)
|
||||
|
||||
## Panniers!
|
||||
|
||||
Next up was the pannier rack, which was guilty of the crime of just being really rusty. I gave it a quick scrub down to clear off any flaky bits and some of the rust, and then went to town using some black straight-to-rust metal spray paint.
|
||||
|
||||
This was probably the easiest job, because after a couple of coats and a day to cure, I had a nice, smooth coat on the pannier rack that I think looks great - at least compared to how it did before. I also swapped out all of the bolts with new ones, because the ones in there were way too long and were covered in rust. Not great for a load-bearing part of the bike.
|
||||
|
||||
![A black bike pannier rack, recently sprayed and looking much fresher](https://cdn.some.pics/lewis/642c16470fee2.jpg?width=500&quality=80)
|
||||
|
||||
## (P)Mudguards!
|
||||
|
||||
Finally, I gave the mudguards the same treatment as the pedals, with the added bonus of some metal polish to try and get the shine back. This was partially successful, they definitely look _better_ than before, but there's still quite a bit of pitting and some rust I couldn't get rid of. I think long-term I'll buy some new chrome mudguards, because this is a commuter bike and I live in England. Anything that separates me and the rain is going to be worth it's weight in chrome-plated aluminium.
|
||||
|
||||
![Two short metal mudguards, side-by-side. One is covered in rust, the other is mostly cleaned up, with a bit of pitting still remaining](https://cdn.some.pics/lewis/642c16f8c72b6.jpg?width=500&quality=80)
|
||||
|
||||
|
||||
## Next?
|
||||
|
||||
I've got nothing _immediately_ planned. I'm going to start riding the bike to work this week, and will see what breaks. But I think it's looking so much better now. There are some bits that still need fixing, and I think new wheels are going to be needed soon, but for the most part I think it seems like a sturdy bike to use for commuting.
|
||||
|
||||
![My vintage Peugeot bike, looking much fresher with a repainted saddle, polished pedals and mudguards, and a resprayed rear pannier rack](https://cdn.some.pics/lewis/642c0339b6e85.jpg?width=500&quality=80)
|
Loading…
Reference in New Issue
Block a user