Server config below. Startting with Ubuntu 22.04LTS. Install Nginx and set SSL certificates Install Nginx sudo apt install nginx Open firewall ports sudo ufw allow 'Nginx HTTP' Set up Ngi...
Reference server block for getting Nginx running in order to execute Certbot and aquire SSL certificates. server {listen 80;listen [::]:80;server_name example.com;root /var/www/example.com;index in...
Link to source -> postgres-cheatsheet.md PSQL Magic words: psql -U postgres Some interesting flags (to see all, use -h or --help depending on your psql version): -E: will ...
This is an example of a systemd service file for starting a Ruby on Rails app automatically. File location is /etc/systemd/system [Unit]Description=ror-app-nameAfter=network.target [Service]Type=si...
Here is an example of a basic Nginx server block, after modification by Certbot. server {server_name example.com;root /var/www/example.com;index index.html index.htm; location / {proxy_pass http://...
Example Nginx server block including PHP, before SSL setup with Certbot. server {listen 80;listen [::]:80;server_name example.com;root /var/www/example.com;index index.html index.htm index.php; loc...
I moved some old web page data from some MYSQL tables that which had been updated and edited over the years. When diplayed on the new site the strange characters were showing up in the ...
Routes - lowercase, with underscores as needed between words Controllers - CamelCase, plural, and append the word "Controller" at the end. Model Class - Singular with the first letter of ...