Skip to content

Commit 9384240

Browse files
Jordi FierroJordi Fierro
authored andcommitted
Rename domain jordifierro.com to jordifierro.dev
1 parent 7b021e6 commit 9384240

7 files changed

+34
-34
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
http://jordifierro.com/
1+
http://jordifierro.dev/
22

33
# Setup
44

_config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ description: > # this means to ignore newlines until "baseurl:"
1818
lean/agile bootstrapping projects craftsman, never-ending learner
1919
and now blogger too!
2020
baseurl: "" # the subpath of your site, e.g. /blog
21-
url: "http://jordifierro.com" # the base hostname & protocol for your site
21+
url: "http://jordifierro.dev" # the base hostname & protocol for your site
2222
twitter_username: jordifierro
2323
github_username: jordifierro
2424

_posts/2020-07-31-llaor-dictionary.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ then api should return for a `/words/left` GET call:
135135
```
136136

137137
That fit in my mind so I got to work.
138-
I used [clean architecture in django](https://jordifierro.com/django-clean-architecture)
138+
I used [clean architecture in django](https://jordifierro.dev/django-clean-architecture)
139139
to work database definitions and transform them to word entities.
140140
Once that was done, I was able to easily introduce Elasticsearch as search engine
141141
to enable search by full text and also by first letter (to create a cool ABC list).

_posts/2020-08-10-building-my-own-infrastructure-1.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ Before starting the migration of any project I though about what I needed and
4545
how to structure my server.
4646
These are the projects I had:
4747

48-
* [jordifierro's](https://jordifierro.com) My personal blog.
48+
* [jordifierro's](https://jordifierro.dev) My personal blog.
4949
It uses Jekyll framework and was hosted on Github pages
5050
(which has Jekyll automatic building integrated).
5151
* [Taddapp](https://taddapp.com) A simple landing page for an Android application.
@@ -90,4 +90,4 @@ I created a server instance there choosing Ubuntu 20.04 (LTS) x64 as image.
9090

9191
Here starts the journey!
9292

93-
Follow me to the [next post](https://jordifierro.com/building-my-own-infrastructure-2)!
93+
Follow me to the [next post](https://jordifierro.dev/building-my-own-infrastructure-2)!

_posts/2020-08-10-building-my-own-infrastructure-2.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ comments: true
88

99
![Door lock](/assets/images/infrastructure_door.png)
1010

11-
At the [first post](https://jordifierro.com/building-my-own-infrastructure-1)
11+
At the [first post](https://jordifierro.dev/building-my-own-infrastructure-1)
1212
of this series I have explained the background and planned the system.
1313

1414
Once I had a running instance of ubuntu server,
@@ -82,4 +82,4 @@ on [project README](https://github.com/jordifierro/server-setup)
8282
but almost all of them were installed using `apt install`.
8383

8484
Keep it reading how I
85-
[built my own infrastructure](https://jordifierro.com/building-my-own-infrastructure-3)!
85+
[built my own infrastructure](https://jordifierro.dev/building-my-own-infrastructure-3)!

_posts/2020-08-10-building-my-own-infrastructure-3.md

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,14 @@ comments: true
99
![Llordà's castle](/assets/images/infrastructure_castle_2.png)
1010

1111
After some security setup I talked about on the
12-
[previous post](https://jordifierro.com/building-my-own-infrastructure-2)...
12+
[previous post](https://jordifierro.dev/building-my-own-infrastructure-2)...
1313
let's start with the applications!
1414
I will only talk about two of them here (others follow similar pattern):
1515
My blog web and Pachatary mobile application.
1616

1717
## My blog
1818

19-
[jordifierro.com](https://jordifierro.com)
19+
[jordifierro.dev](https://jordifierro.dev)
2020

2121
This is a website created with Jekyll so its statics must be builded from source code.
2222

@@ -25,7 +25,7 @@ Here I paste the instructions to mount it on the server:
2525
First, add an `A Record` from your domain to the server ip.
2626
Then, generate an ssl certificate with certbot tool:
2727
```bash
28-
sudo certbot certonly --manual --preferred-challenges=dns --email=myemail@gmail.com --server https://acme-v02.api.letsencrypt.org/directory --agree-tos -d "*.jordifierro.com" -d jordifierro.com
28+
sudo certbot certonly --manual --preferred-challenges=dns --email=myemail@gmail.com --server https://acme-v02.api.letsencrypt.org/directory --agree-tos -d "*.jordifierro.dev" -d jordifierro.dev
2929
```
3030

3131
This is the `nginx.conf` for this project:
@@ -34,10 +34,10 @@ This is the `nginx.conf` for this project:
3434
server {
3535
listen 127.0.0.1:80;
3636

37-
root /var/www/jordifierro.com/html;
37+
root /var/www/jordifierro.dev/html;
3838
index index.html index.htm index.nginx-debian.html;
3939

40-
server_name jordifierro.com www.jordifierro.com;
40+
server_name jordifierro.dev www.jordifierro.dev;
4141

4242
location / {
4343
try_files $uri $uri.html $uri/index.html /index.html;
@@ -47,23 +47,23 @@ server {
4747

4848
Setup it:
4949
```bash
50-
sudo cp server-setup/blog/nginx.conf /etc/nginx/sites-available/jordifierro.com
51-
sudo rm /etc/nginx/sites-enabled/jordifierro.com
52-
sudo ln -s /etc/nginx/sites-available/jordifierro.com /etc/nginx/sites-enabled/
50+
sudo cp server-setup/blog/nginx.conf /etc/nginx/sites-available/jordifierro.dev
51+
sudo rm /etc/nginx/sites-enabled/jordifierro.dev
52+
sudo ln -s /etc/nginx/sites-available/jordifierro.dev /etc/nginx/sites-enabled/
5353
sudo systemctl reload nginx
5454
```
5555

56-
And finally build and deploy the static files under `/var/www/jordifierro.com`
56+
And finally build and deploy the static files under `/var/www/jordifierro.dev`
5757
using a docker jekyll images and volumes:
5858
```bash
5959
git clone https://github.com/jordifierro/jordifierro.github.io.git
6060
cd jordifierro.github.io
6161
sudo mkdir -p .jekyll-cache _site
6262
sudo docker run --rm -t --volume="$PWD:/srv/jekyll" --env JEKYLL_ENV=production jekyll/jekyll:3.8 bash -c "jekyll build --trace"
6363
cd ..
64-
sudo mkdir -p /var/www/jordifierro.com/html
65-
sudo chown -R $USER:$USER /var/www/jordifierro.com/html
66-
sudo mv jordifierro.github.io/_site/* /var/www/jordifierro.com/html/
64+
sudo mkdir -p /var/www/jordifierro.dev/html
65+
sudo chown -R $USER:$USER /var/www/jordifierro.dev/html
66+
sudo mv jordifierro.github.io/_site/* /var/www/jordifierro.dev/html/
6767
```
6868

6969
## Pachatary
@@ -259,7 +259,7 @@ defaults
259259

260260
frontend jordifierro
261261
bind SERVER_IP:80
262-
bind SERVER_IP:443 ssl crt /etc/haproxy/certs/jordifierro.com.pem crt /etc/haproxy/certs/pachatary.com.pem
262+
bind SERVER_IP:443 ssl crt /etc/haproxy/certs/jordifierro.dev.pem crt /etc/haproxy/certs/pachatary.com.pem
263263
redirect scheme https code 301 if !{ ssl_fc }
264264
mode http
265265
option forwardfor header X-Real-IP
@@ -281,7 +281,7 @@ backend pachatary_api
281281
```
282282
283283
This HAProxy config has 2 paths.
284-
The default one redirects to system Nginx (jordifierro.com),
284+
The default one redirects to system Nginx (jordifierro.dev),
285285
where each server config will serve appropriate files.
286286
The other is for pachatary.com domain.
287287
It load balances the requests to the two different docker containers
@@ -293,7 +293,7 @@ with the desired format:
293293
```bash
294294
sudo mkdir -p /etc/haproxy/certs
295295
sudo cat /etc/letsencrypt/live/pachatary.com/fullchain.pem /etc/letsencrypt/live/pachatary.com/privkey.pem > /etc/haproxy/certs/pachatary.com.pem
296-
sudo cat /etc/letsencrypt/live/jordifierro.com/fullchain.pem /etc/letsencrypt/live/jordifierro.com/privkey.pem > /etc/haproxy/certs/jordifierro.com.pem
296+
sudo cat /etc/letsencrypt/live/jordifierro.dev/fullchain.pem /etc/letsencrypt/live/jordifierro.dev/privkey.pem > /etc/haproxy/certs/jordifierro.dev.pem
297297
```
298298
299299
Let's restart HAProxy to apply changes:
@@ -304,5 +304,5 @@ systemctl restart haproxy
304304
To get more information about all the setup you can visit the
305305
[server-setup](https://github.com/jordifierro/server-setup) Github repository.
306306
307-
On the [last post](https://jordifierro.com/building-my-own-infrastructure-4)
307+
On the [last post](https://jordifierro.dev/building-my-own-infrastructure-4)
308308
I will explain how I use Jenkins to handle server tasks!

_posts/2020-08-10-building-my-own-infrastructure-4.md

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ comments: true
99
![Mur's castle inside](/assets/images/infrastructure_castle_inside.png)
1010

1111
In this last post
12-
(see the [previous one](https://jordifierro.com/building-my-own-infrastructure-3))
12+
(see the [previous one](https://jordifierro.dev/building-my-own-infrastructure-3))
1313
I'm going to talk about [Jenkins](https://www.jenkins.io),
1414
how to configure it and what I use it for.
1515

@@ -34,10 +34,10 @@ upstream jenkins {
3434

3535
server {
3636
listen 127.0.0.1:80;
37-
server_name jenkins.jordifierro.com;
37+
server_name jenkins.jordifierro.dev;
3838

39-
ssl_certificate /etc/letsencrypt/live/jordifierro.com/fullchain.pem;
40-
ssl_certificate_key /etc/letsencrypt/live/jordifierro.com/privkey.pem;
39+
ssl_certificate /etc/letsencrypt/live/jordifierro.dev/fullchain.pem;
40+
ssl_certificate_key /etc/letsencrypt/live/jordifierro.dev/privkey.pem;
4141

4242
location / {
4343
proxy_set_header Host $host:$server_port;
@@ -51,20 +51,20 @@ server {
5151
proxy_request_buffering off;
5252
proxy_buffering off; # Required for HTTP-based CLI to work over SSL
5353
# workaround for https://issues.jenkins-ci.org/browse/JENKINS-45651
54-
add_header 'X-SSH-Endpoint' 'jenkins.jordifierro.com:50022' always;
54+
add_header 'X-SSH-Endpoint' 'jenkins.jordifierro.dev:50022' always;
5555
}
5656
}
5757
```
5858

5959
Copy that file to nginx conf and restart nginx:
6060
```bash
61-
sudo cp server-setup/jenkins/nginx.conf /etc/nginx/sites-available/jenkins.jordifierro.com
62-
sudo rm /etc/nginx/sites-enabled/jenkins.jordifierro.com
63-
sudo ln -s /etc/nginx/sites-available/jenkins.jordifierro.com /etc/nginx/sites-enabled/
61+
sudo cp server-setup/jenkins/nginx.conf /etc/nginx/sites-available/jenkins.jordifierro.dev
62+
sudo rm /etc/nginx/sites-enabled/jenkins.jordifierro.dev
63+
sudo ln -s /etc/nginx/sites-available/jenkins.jordifierro.dev /etc/nginx/sites-enabled/
6464
sudo systemctl reload nginx
6565
```
6666

67-
I have exposed Jenkins on `jenkins.jordifierro.com`.
67+
I have exposed Jenkins on `jenkins.jordifierro.dev`.
6868
Now, I can enter and configure my user.
6969

7070
Once installed, open it and create your user.
@@ -97,7 +97,7 @@ Jobs:
9797
### Deploy
9898

9999
This job is almost the same as the script to deploy my blog
100-
(see the [previous post](https://jordifierro.com/building-my-own-infrastructure-3)).
100+
(see the [previous post](https://jordifierro.dev/building-my-own-infrastructure-3)).
101101
The difference here is that I configured it
102102
to run on git push on master branch of the Github repository of the project.
103103
To make that enter to `Configure` page of the job and fill the Github forms.
@@ -154,7 +154,7 @@ sudo docker run --name pachatary-nginx-02 -v pachatary-statics-02:/usr/share/ngi
154154
```
155155

156156
It is similar to the one used on the
157-
[previous post](https://jordifierro.com/bulding-my-own-infrastructure-3),
157+
[previous post](https://jordifierro.dev/bulding-my-own-infrastructure-3),
158158
but in this case we `cat` the `env.list` file from a secret file.
159159
I've also added an sleep between the update of the container
160160
01 and 02 to avoid downtime (HAProxy does the rest).

0 commit comments

Comments
 (0)