kbrot avatar

kbrot

@kbrot@kbin.social
Jerry, (edited )
  • I ignored the thing about kbin.localhost and everything on https://feddit.online is working well, also in my test environment. So, you can probably skip it too.
  • The "var" folder will not be found in the kbin folder so the chown will not work. What I did, and from other comments that I've read, I think this is what it should have been, "sudo chown 82:82 /var"

Here's my .env file without the secrets.
Where I mention a long secret, you can use this Linux command to generate a strong 32-character secret
openssl rand -hex 32

# kbin variables
SERVER_NAME="feddit.online"
KBIN_DOMAIN=feddit.online
KBIN_TITLE=/kbin
KBIN_DEFAULT_LANG=en
KBIN_FEDERATION_ENABLED=true
KBIN_CONTACT_EMAIL=admin@feddit.online
KBIN_SENDER_EMAIL=notifications@feddit.online
KBIN_JS_ENABLED=true
KBIN_REGISTRATIONS_ENABLED=true
KBIN_API_ITEMS_PER_PAGE=25
#Frankly unsure if the next line does anything
KBIN_STORAGE_URL=https://media.feddit.online
KBIN_META_TITLE="Kbin Lab"
KBIN_META_DESCRIPTION="content aggregator and micro-blogging platform for the fediverse"
KBIN_META_KEYWORDS="kbin, content agregator, open source, fediverse"
KBIN_HEADER_LOGO=false
KBIN_CAPTCHA_ENABLED=true

# Redis
REDIS_PASSWORD=password_here_that_you_make_up
REDIS_DNS=redis://${REDIS_PASSWORD}@redis

# S3 storage (optional) THIS DOES NOTHING. TURNS OUT IT ONLY WORKS WITH AWS S3 AND I  WANT TO USE WASAB
# SO THESE SETTINGS ARE NOT USED
S3_KEY=<key>
S3_SECRET=<secret>
S3_BUCKET=media.feddit.online
S3_REGION=us-east-1
S3_VERSION=latest

# oAuth (optional)
OAUTH_FACEBOOK_ID=
OAUTH_FACEBOOK_SECRET=
OAUTH_GOOGLE_ID=
OAUTH_GOOGLE_SECRET=
OAUTH_GITHUB_ID=
OAUTH_GITHUB_SECRET=

###> symfony/framework-bundle ###
APP_ENV=prod
APP_SECRET=427f5e2940e5b2472c1b44b2d06e0525
###< symfony/framework-bundle ###

###> doctrine/doctrine-bundle ###
# Format described at https://www.doctrine-project.org/projects/doctrine-dbal/en/latest/reference/configuration.html#connecting-using-a-url
# IMPORTANT: You MUST configure your server version, either here or in config/packages/doctrine.yaml
#
POSTGRES_DB=kbin
POSTGRES_USER=kbin
POSTGRES_PASSWORD=password_here_that_you_make_up
POSTGRES_VERSION=13
DATABASE_URL="postgresql://${POSTGRES_USER}:${POSTGRES_PASSWORD}@127.0.0.1:5432/${POSTGRES_DB}?serverVersion=${POSTGRES_VERSION}&charset=utf8"
###< doctrine/doctrine-bundle ###

###> symfony/messenger ###
# Choose one of the transports below
RABBITMQ_PASSWORD=password_here_that_you_make_up
MESSENGER_TRANSPORT_DSN=amqp://kbin:${RABBITMQ_PASSWORD}@rabbitmq:5672/%2f/messages
###< symfony/messenger ###

###> symfony/mailer ###
#MAILER_DSN=smtp://localhost
###< symfony/mailer ###

###> symfony/mailgun-mailer ###
MAILER_DSN=smtp://notifications@feddit.online:<password here>@smtp.dreamhost.com:587
###< symfony/mailgun-mailer ###

###> symfony/mercure-bundle ###
# See https://symfony.com/doc/current/mercure.html#configuration
# The URL of the Mercure hub, used by the app to publish updates (can be a local URL)
MERCURE_URL=https://feddit.online/.well-known/mercure
# The public URL of the Mercure hub, used by the browser to connect
MERCURE_PUBLIC_URL=https://feddit.online/.well-known/mercure
# The secret used to sign the JWTs
MERCURE_JWT_SECRET=long_password_here_that_you_make_up
# Docker
CADDY_MERCURE_URL=https://feddit.online/.well-known/mercure
CADDY_MERCURE_JWT_SECRET=long_password_here_that_you_make_up
###< symfony/mercure-bundle ###

###> nelmio/cors-bundle ###
CORS_ALLOW_ORIGIN='^https?://(kbin.localhost|127.0.0.1)(:[0-9]+)?$'
###< nelmio/cors-bundle ###

###> symfony/lock ###
# Choose one of the stores below
# postgresql+advisory://db_user:db_password@localhost/db_name
LOCK_DSN=flock
###< symfony/lock ###

###> lexik/jwt-authentication-bundle ###
JWT_SECRET_KEY=%kernel.project_dir%/config/jwt/private.pem
JWT_PUBLIC_KEY=%kernel.project_dir%/config/jwt/public.pem
JWT_PASSPHRASE=
###< lexik/jwt-authentication-bundle ###

###> meteo-concept/hcaptcha-bundle ###
HCAPTCHA_SITE_KEY=<key>
HCAPTCHA_SECRET=<secret>
###< meteo-concept/hcaptcha-bundle ###

hanniabu,
hanniabu avatar

I've put together a comparison of Reddit alternatives:

https://gist.github.com/hanniabu/6f96c6e820d58d8736f3c15d4c0e8ae6

I know everyone is favorable to kbin but I think there's still some questions that need to be answered, such as hosted vs self-hosted, how mirroring works, and issues with impersonation.

Discuss here:

https://kbin.social/m/ethfinance/t/16140/Reddit-Alternative-Analysis

or here

https://www.reddit.com/r/ethfinance/comments/149bnik/reddit_alternative_analysis/

Tricky_Troll, (edited )
Tricky_Troll avatar

Tricky's Daily Doots #419

Yesterday's Daily 12/06/2023

Previous Kbin Daily

Previous Daily Doots

Hmm, the doots take a tad longer here but I could get used to it. Hopefully the formatting works too. 🤞

Edit: Fuck yeah, formatting works! 😎

newtosh, (edited )
newtosh avatar

Random observations & thoughts about kbin.social:

  • Unlike Reddit, kbin natively supports posting pics in comments 📸
  • How to set an avatar: Click 'your-username' (on the top-right of the page) --> 'Settings' --> 'Profile' (in the appearing horizontal menu). I overlooked the horizontal menu a dozen times.
  • Subreddits are called Magazines here
  • The ethfinance magazine that @kbrot set up for us lives on the main kbin server, https://kbin.social - if you check its homepage, you'll see posts from other magazines too, such as news, RedditMigration, or unpopularopinion
  • The default sorting of our daily thread is "hot" (=nr of upvotes), you gotta switch manually to "newest" every time (sigh) if you prefer that
  • Like on reddit, we can upvote threads (updoot the diddly) as well as individual comments/replies
  • We're still missing a choo-choo-train or some other banner. Can magazines have banner pictures @kbrot?
  • Federation, the hallmark feature of kbin, is switched off temporarily. Check out the kbin-alternative Lemmy to see how it works: The homepage of the lemmy.ml server curently also displays threads originally created on the lemmy servers beehaw.org, lemmy.world, and feddit.de. In the comments of such threads, you see accounts registered on a variety lemmy servers, such as lemmy.one, sh.itjust.works, sopuli.xyz, etc. Federation means the servers talk to each other to enable cross-commenting and cross-viewing.
  • All
  • Subscribed
  • Moderated
  • Favorites
  • megavids
  • kavyap
  • DreamBathrooms
  • thenastyranch
  • magazineikmin
  • vwfavf
  • InstantRegret
  • Youngstown
  • ngwrru68w68
  • slotface
  • Durango
  • cisconetworking
  • tacticalgear
  • rosin
  • provamag3
  • everett
  • cubers
  • khanakhh
  • osvaldo12
  • mdbf
  • ethstaker
  • normalnudes
  • modclub
  • Leos
  • GTA5RPClips
  • tester
  • anitta
  • JUstTest
  • All magazines