Giter VIP home page Giter VIP logo

Comments (8)

mauriciabad avatar mauriciabad commented on July 19, 2024 1

I added an example .env.example file, so it is clear what variables are used.

https://github.com/mauriciabad/dive-log/blob/main/.env.example

Replace aaaaaaaaaa with the actual values.

from dive-log.

mauriciabad avatar mauriciabad commented on July 19, 2024 1

Facebook changed the way it works and now it asks for tour ID and other company details i don't like giving that info. (Instagram the same)

Google requires you to submit a form with a privacy policy. It's actually okay because i already did it so it should be easy.

Discord is actually super simple, but very few people use it.

from dive-log.

mauriciabad avatar mauriciabad commented on July 19, 2024

Hi, the NEXT_PUBLIC_DATABASE_ENV env variable should be this (in production):

NEXT_PUBLIC_DATABASE_ENV='production'

And for your development environment this:

NEXT_PUBLIC_DATABASE_ENV='test'

from dive-log.

darrenmeehan avatar darrenmeehan commented on July 19, 2024

Amazing thank you!

I'll try again and get back to you.

from dive-log.

mauriciabad avatar mauriciabad commented on July 19, 2024

If you just want to self-host it, I recommend you remove the OAuth options and just keep the GitHub one, that is the easiest to configure and maintain.

from dive-log.

darrenmeehan avatar darrenmeehan commented on July 19, 2024

What makes the others difficult to maintain?

I was looking at the auth setup and we could conditionally add each provider by checking for the existence of the environment variables for each provider.

I'm only interested in Github for myself, possibly Google if I extend to others.

from dive-log.

darrenmeehan avatar darrenmeehan commented on July 19, 2024

Thanks for the insight!

I'm happy to just use Github for myself. I've a PR up to make them optional so people can choose what OAuth provider they want to use.

They'll have to change the code to add in a provider outside of those imported but I guess they can PR that change in if that happens?

from dive-log.

mauriciabad avatar mauriciabad commented on July 19, 2024

Yes, if someone wants to add a provider, they can open a PR. And if it's for a self-hosted instance, they can just fork the repo and change it as they like.

from dive-log.

Related Issues (2)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. šŸ“ŠšŸ“ˆšŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.