Browse Source

Creating a post to sell the Tesla, but archiving because we traded it instead

tesla
Levi Olson 4 years ago
parent
commit
619dc32425
8 changed files with 265 additions and 0 deletions
  1. +143
    -0
      README2.md
  2. +56
    -0
      posts/tesla-model-x.html
  3. +9
    -0
      posts/tesla-model-x.json
  4. +57
    -0
      posts/tesla-model-x.md
  5. BIN
      public/images/145108_driver-seat.jpg
  6. BIN
      public/images/145412_suspension.jpg
  7. BIN
      public/images/145429_center-screen-doors.jpg
  8. BIN
      public/images/4235_passenger-rear.png

+ 143
- 0
README2.md View File

@ -0,0 +1,143 @@
# Let's Encrypt
## Working with NGINX configs locally
Sync your local file to the server (run after every update)
```bash
rsync -rtvpl path/to/local/leviolson.com.conf base-droplet:/etc/nginx/sites-available/
```
Create a symlink in nginx `sites-enabled`
```bash
ssh base-droplet ln -s /etc/nginx/sites-available/leviolson.com.conf /etc/nginx/sites-enabled/
```
Restart Nginx after each `rsync` command
```bash
ssh base-droplet sudo service nginx restart
```
## Setup NGINX for cert creation
Nginx must be minimally configured at this point to allow port 80 to work and not fail trying to access port 443 or redirecting you. Our main nginx config (below) tries to redirct to HTTPS which would cause Let's Encrypt to fail.
```nginx
server {
listen 80;
server_name leviolson.com www.leviolson.com;
location / {
proxy_pass http://localhost:3000; # port must match the same as the node app
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
}
```
Sync this file:
```bash
rsync -rtvpl ./leviolson.com.conf base-droplet:/etc/nginx/sites-available/
```
Restart Nginx:
```bash
ssh base-droplet sudo service nginx restart
```
## Create the cert
```bash
sudo certbot certonly --nginx --manual -d leviolson.com -d www.leviolson.com
```
This will start the process of generating a cert for the two domain names provided.
As part of that process it will look for `.well-known/acme-challenge/{file}` where `{file}` is provided by the command output. The contents of that file are provided as well.
Something like the following will create this file for you:
```bash
echo "long string provided" > {file}
```
After creating the file(s), you can complete the cert process and at that point you need to change the nginx conf file.
## NGINX final state
```nginx
server {
if ($host = www.leviolson.com) {
return 301 https://leviolson.com$request_uri;
}
server_name leviolson.com www.leviolson.com;
location / {
proxy_pass http://localhost:3000; # port must match the same as the node app
proxy_http_version 1.1;
proxy_set_header Upgrade $http_upgrade;
proxy_set_header Connection 'upgrade';
proxy_set_header Host $host;
proxy_cache_bypass $http_upgrade;
}
listen 443 ssl; # managed by Certbot
ssl_certificate /etc/letsencrypt/live/leviolson.com-0001/fullchain.pem; # managed by Certbot
ssl_certificate_key /etc/letsencrypt/live/leviolson.com-0001/privkey.pem; # managed by Certbot
include /etc/letsencrypt/options-ssl-nginx.conf; # managed by Certbot
ssl_dhparam /etc/letsencrypt/ssl-dhparams.pem; # managed by Certbot
}
server {
if ($host = leviolson.com) {
return 301 https://$host$request_uri;
}
if ($host = www.leviolson.com) {
return 301 https://leviolson.com$request_uri;
}
server_name leviolson.com www.leviolson.com;
listen 80;
return 404;
}
```
You'll want to verify the location of the `*.pem` files linked in the nginx config above.
```bash
ssh base-droplet ls -al /etc/letsencrypt/live/leviolson.com-0001/
```
This should return something like the following:
```
total 12
drwxr-xr-x 2 root root 4096 Jul 20 18:14 .
drwxr-xr-x 7 root root 4096 Jul 20 19:21 ..
lrwxrwxrwx 1 root root 42 Jul 20 18:14 cert.pem -> ../../archive/leviolson.com-0001/cert1.pem
lrwxrwxrwx 1 root root 43 Jul 20 18:14 chain.pem -> ../../archive/leviolson.com-0001/chain1.pem
lrwxrwxrwx 1 root root 47 Jul 20 18:14 fullchain.pem -> ../../archive/leviolson.com-0001/fullchain1.pem
lrwxrwxrwx 1 root root 45 Jul 20 18:14 privkey.pem -> ../../archive/leviolson.com-0001/privkey1.pem
-rw-r--r-- 1 root root 692 Jul 20 18:14 README
```
Sync this file:
```bash
rsync -rtvpl ./leviolson.com.conf base-droplet:/etc/nginx/sites-available/
```
Restart Nginx:
```bash
ssh base-droplet sudo service nginx restart
```
## Some helpful debugging commands
```bash
pm2 status
```
```bash
journalctl -xe
```
```bash
sudo ufw status
```
This should include the port you are serving if you wish to have that port accessible to the public as well.

+ 56
- 0
posts/tesla-model-x.html View File

@ -0,0 +1,56 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<title>2016 Tesla Model X P90DL</title>
<style>
</style>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/katex@0.10.2/dist/katex.min.css" integrity="sha384-yFRtMMDnQtDRO8rLpMIKrtPCD5jdktao2TV19YiZYWMDkUR5GQZR/NOVTdquEx1j" crossorigin="anonymous">
<link href="https://cdn.jsdelivr.net/npm/katex-copytex@latest/dist/katex-copytex.min.css" rel="stylesheet" type="text/css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Microsoft/vscode/extensions/markdown-language-features/media/markdown.css">
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/Microsoft/vscode/extensions/markdown-language-features/media/highlight.css">
<style>
body {
font-family: -apple-system, BlinkMacSystemFont, 'Segoe WPC', 'Segoe UI', system-ui, 'Ubuntu', 'Droid Sans', sans-serif;
font-size: 14px;
line-height: 1.6;
}
</style>
<style>
.task-list-item { list-style-type: none; } .task-list-item-checkbox { margin-left: -20px; vertical-align: middle; }
</style>
<script src="https://cdn.jsdelivr.net/npm/katex-copytex@latest/dist/katex-copytex.min.js"></script>
</head>
<body class="vscode-light">
<h1 id="2016-tesla-model-x-p90dl">2016 Tesla Model X P90DL</h1>
<p>Meet Bolt - Our Model X</p>
<p><img src="file:////home/leothelocust/Projects/personal/website/public/images/4235_passenger-rear.png" alt="Our 2016 Tesla Model X"></p>
<p>In preparation for the eventual Cybertruck release, we are selling our very well taken care of Model X.</p>
<p><img src="file:////home/leothelocust/Projects/personal/website/public/images/145108_driver-seat.jpg" alt="Driver Seat"></p>
<p>This vehicle has all the upgrades available, and includes:</p>
<ul>
<li>Upgraded Premium Sound package</li>
<li>Cold Weather package</li>
<li>All 6 seats heated</li>
<li>Front driver and passenger Cooled/Ventilated seats</li>
<li>LUDICROUS upgrade (0-60 in 3.0 seconds)</li>
<li>90 kWh battery pack</li>
<li>253 miles range</li>
<li>Auto-presenting front driver door (as you walk up with the key, the door opens automatically)</li>
<li>Falcon-wing doors</li>
<li>Loads of storage space</li>
<li>Rear fold flat seats</li>
<li>Additional storage locker behind rear seats</li>
<li>Front-trunk (frunk)</li>
<li>Automatic air suspension <code>Very High</code>, <code>High</code>, <code>Standard</code>, <code>Low</code>, and <code>Very Low</code> settings</li>
<li>When set to <code>Very High</code> or <code>High</code> a GPS position is used to automatically raise the next time you visit the same location</li>
</ul>
<p>This vehicle is LOADED.</p>
<p><img src="file:////home/leothelocust/Projects/personal/website/public/images/145412_suspension.jpg" alt="Suspension Settings Menue"></p>
<p>All doors can be operated from the Center Screen</p>
<p><img src="file://///wsl$/Ubuntu-20.04/home/leothelocust/Projects/personal/website/public/images/MVIMG_20191207_145429_center-screen-doors.jpg" alt="Doors"></p>
</body>
</html>

+ 9
- 0
posts/tesla-model-x.json View File

@ -0,0 +1,9 @@
{
"title": "Tesla Model X - Levi Olson",
"permalink": "/posts/tesla-model-x",
"created_at": "2020-08-06T18:11:11-06:00",
"created_at_short": "2020-08-06",
"post_title": "tesla model x",
"active": "posts",
"content_file": "tesla-model-x.html"
}

+ 57
- 0
posts/tesla-model-x.md View File

@ -0,0 +1,57 @@
# 2016 Tesla Model X P90DL #
Meet Bolt - Our Black 6 seater Model X w/Ludicrous upgrade!
![Our 2016 Tesla Model X](../public/images/4235_passenger-rear.png)
In preparation for the eventual Cybertruck release, we are selling our very well taken care of Model X.
![Driver Seat](../public/images/145108_driver-seat.jpg)
This vehicle has all the upgrades available, and includes:
* Upgraded Premium Sound package
* Cold Weather package
* All 6 seats heated
* Front driver and passenger heated AND Cooled/Ventilated seats
* LUDICROUS upgrade (0-60 in 3.0 seconds)
* 90 kWh battery pack
* Auto-presenting front driver door (as you walk up with the key, the door opens automatically)
* Advanced keyfob allows for opening all doors individually or closing them all with the touch of a button
* Falcon-wing doors
* Loads of storage space
* Rear fold flat seats
* Additional storage locker behind rear seats
* Front-trunk (frunk)
* Automatic air suspension `Very High`, `High`, `Standard`, `Low`, and `Very Low` settings
* When set to `Very High` or `High` a GPS position is used to automatically raise the next time you visit the same location
* Summon (pull into or out of a parking space w/o being in the vehicle)
* Autopilot (steering within well marked roads) AP1
* Many people believe this is a superior Autopilot driving experience to the newer camera-only systems provided in late-model Tesla vehicles
* Adaptive Cruise (keeps speed to vehicle ahead)
Additionally
* New all-weather tires this year 2020 (Nokian WR G4 SUV performance all-weather tire) See [nokiantires.com](https://www.nokiantires.com/all-weather-tires/nokian-wr-g4-suv/)
> The versatile Nokian WR G4 SUV optimally combines high-performance, all-season handling and reliable winter grip to make it a true all-weather tire [...] with new innovations to ensure performance in snow storms, heavy rain or sun-scorched asphalt, so you can forget the forecast regardless of the season.
* Custom fitted floor mats by [TOUGHPRO](https://toughpro.com/) (Made in USA, Lifetime Warranty)
* Premis Window Mesh [Sun Shades](https://www.amazon.com/dp/B07FG26ZCR/ref=cm_sw_r_tw_dp_x_gmjlFbC47W40E)
* New half-shafts in front drivetrain to fix the known issue that plagues many Model X owners (covered under warranty)
This vehicle is LOADED.
![Suspension Settings Menue](../public/images/145412_suspension.jpg)
All doors can be operated from the Center Screen
![Doors](../public/images/145429_center-screen-doors.jpg)
# REMOVE
Replace
../public
//wsl$/Ubuntu-20.04/home/leothelocust/Projects/personal/website/public

BIN
public/images/145108_driver-seat.jpg View File

Before After
Width: 4032  |  Height: 3024  |  Size: 3.8 MiB

BIN
public/images/145412_suspension.jpg View File

Before After
Width: 3024  |  Height: 4032  |  Size: 6.0 MiB

BIN
public/images/145429_center-screen-doors.jpg View File

Before After
Width: 1440  |  Height: 1080  |  Size: 390 KiB

BIN
public/images/4235_passenger-rear.png View File

Before After
Width: 5184  |  Height: 3456  |  Size: 28 MiB

Loading…
Cancel
Save