Skip to content

Instantly share code, notes, and snippets.

@brainstorm
Last active February 20, 2025 00:08
Show Gist options
  • Save brainstorm/fff0d5cdad72d9e0a9265488be8b1bb6 to your computer and use it in GitHub Desktop.
Save brainstorm/fff0d5cdad72d9e0a9265488be8b1bb6 to your computer and use it in GitHub Desktop.
snac fediverse config
snac init data
snac adduser data
wget https://codeberg.org/voron/snac-style/raw/branch/master/modern-dark.css -O data/style.css
snac httpd data
# Redirect HTTP to HTTPS
server {
listen 80;
server_name lolcathost.org;
return 301 https://$host$request_uri;
}
# HTTPS server
server {
listen 443 ssl;
server_name lolcathost.org;
root html;
index index.html index.htm;
ssl_certificate /etc/letsencrypt/live/lolcathost.org/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/lolcathost.org/privkey.pem;
ssl_session_timeout 5m;
ssl_protocols TLSv1.2 TLSv1.3;
ssl_ciphers "HIGH:!aNULL:!MD5:!3DES";
ssl_prefer_server_ciphers on;
location / {
proxy_pass http://127.0.0.1:8001;
proxy_set_header Host $host;
proxy_set_header X-Real-IP $remote_addr;
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
proxy_set_header X-Forwarded-Proto $scheme;
}
}
User-agent: *
Disallow: /
{
"host": "lolcathost.org",
"prefix": "",
"address": "127.0.0.1",
"port": 8001,
"layout": 2.7,
"dbglevel": 0,
"queue_retry_minutes": 2,
"queue_retry_max": 10,
"queue_timeout": 6,
"queue_timeout_2": 8,
"cssurls": [
"modern-dark.css"
],
"disable_email_notifications": true,
"show_instance_timeline": true,
"max_timeline_entries": 50,
"timeline_purge_days": 120,
"local_purge_days": 0,
"min_account_age": 0,
"admin_email": "",
"admin_account": "",
"title": "",
"short_description": "",
"protocol": "https",
"fastcgi": false
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment