Skip to content

Instantly share code, notes, and snippets.

View bartwork's full-sized avatar
🎯
Focusing

Alexander bartwork

🎯
Focusing
View GitHub Profile
@denisoster
denisoster / nginx.conf
Last active April 13, 2024 12:17
Nginx+RoR(Puma)+SSL+redirect
upstream site {
server unix:/home/site/web/site.com.ua/site/shared/sockets/puma.sock fail_timeout=0;
}
server {
listen 80;
server_name site.com.ua www.site.com.ua;
rewrite ^(.+)$ https://site.com.ua$uri permanent;
}
@ChuckJHardy
ChuckJHardy / digital_ocean_setup.md
Last active September 17, 2025 05:34
DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3 Setup Instructions

DigitalOcean Ubuntu 14.04 x64 + Rails 4 + Nginx + Unicorn + PostgreSQL + Capistrano 3

SSH into Root

$ ssh root@123.123.123.123

Change Root Password

@jtadeulopes
jtadeulopes / server.md
Last active October 22, 2025 18:39
Server setup with ubuntu, nginx and puma for rails app.

Update and upgrade the system

sudo apt-get update && sudo apt-get upgrade && sudo apt-get dist-upgrade && sudo apt-get autoremove
sudo reboot

Configure timezone