Giter VIP home page Giter VIP logo

naturalcrit's Introduction

Naturalcrit

Top-tier tools for the discerning D&D DM

naturalcrit's People

Contributors

5e-cleric avatar calculuschild avatar gazook89 avatar stolksdorf avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

naturalcrit's Issues

Question on how to spin up a Docker image for connecting to homebrewery docker image

Hi all,

How would one set up a docker image to allow for login into a docker image of homebrewery on localhost? I have never created a docker image from scratch, alwas used a prebuilt image, but on the homebrewery subreddit, they mentioned changing a line of code in one of the homebrewery scripts to connect to a locally hosted and running naturalcrit project.

Kind regards

Mongoose Warnings in console.log

(node:6460) DeprecationWarning: current URL string parser is deprecated, and will be removed in a future version. To use the new parser, pass option { useNewUrlParser: true } to MongoClient.connect.
(Use `node --trace-deprecation ...` to show where the warning was created)
(node:6460) DeprecationWarning: current Server Discovery and Monitoring engine is deprecated, and will be removed in a future version. To use the new Server Discover and Monitoring engine, pass option { useUnifiedTopology: true } to the MongoClient constructor.
(node:6460) DeprecationWarning: collection.ensureIndex is deprecated. Use createIndexes instead.

Lack of Account Management features

Currently the Natural Crit account system is lacking some key features; namely:

  • the ability for a user to change or reset their password; and
  • the ability for a user to completely delete their account.

Raising this issue for visibility and action.

Cookies variable

NaturalCrit uses cookies to facilitate the log in and account management functionality between it (NaturalCrit) and The Homebrewery. So unless the cookies are properly configured, then the log in functionality between the two is not going to work.

In the current production deployment of The Homebrewery this log in function works fine. But for someone who wants to self-host it, they need to change these variables.

The variables in question are in the file client/naturalcrit/account.actions.js.

document.cookie = `nc_session=${token}; max-age=${60*60*24*365}; path=/; samesite=lax; domain=${window.domain}`;

I tried creating a process environment variable that I could pass through docker (e4099cf) but this didn't seem to work. Ultimately for my own deployment, I just hard-coded my top level domain. Something like domain=xyz.com should work.

No fix is really needed (other than for convenience). This issue is really just for reference in case anyone else wants to self-host this repo along with Homebrewery.

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.