Last active
February 20, 2025 00:08
-
-
Save brainstorm/fff0d5cdad72d9e0a9265488be8b1bb6 to your computer and use it in GitHub Desktop.
snac fediverse config
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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; | |
} | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
User-agent: * | |
Disallow: / |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"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