Skip to content

Instantly share code, notes, and snippets.

@mfalkvidd
mfalkvidd / nginx-thingsboard
Last active June 21, 2024 08:23
Thingsboard nginx reverse proxy with websocket and HTTPS support (Let's Encrypt)
server {
listen 80;
server_name EXTERNAL_THINGSBOARD_DOMAIN.com;
if ($scheme != "https") {
return 301 https://$host$request_uri;
} # managed by Certbot
}
server {
@bradtraversy
bradtraversy / node_nginx_ssl.md
Last active July 25, 2024 06:56
Node app deploy with nginx & SSL

Node.js Deployment

Steps to deploy a Node.js app to DigitalOcean using PM2, NGINX as a reverse proxy and an SSL from LetsEncrypt

1. Sign up for Digital Ocean

If you use the referal link below, you get $10 free (1 or 2 months) https://m.do.co/c/5424d440c63a

2. Create a droplet and log in via ssh

I will be using the root user, but would suggest creating a new user

@dextersiah
dextersiah / ConnectionV2.py
Created January 28, 2020 09:41
An updated version of GPS Tracking for both python 2 and 3.7 that was created by shiyazt
# This code is only workable on python 2
import httplib, urllib
import time
from GPS_API import *
import serial
ser = serial.Serial("/dev/serial0") # Select your Serial Port
ser.baudrate = 9600 # Baud rate
ser.timeout = 0.5