Comments (2)
This is an odd issue. Could you post a redacted version of your environment file?
Shynet leans on Django for essentially all of its database work, so it’s unlikely that this is an issue with Shynet itself. Still, I’m curious about the root cause here—it’ll probably be helpful to add an NB to the usage guide for others once we figure out what it is.
from shynet.
I was able to get the container started but it required trusting my private IP in pg_hba.conf
as well as ensuring that postgresql was listening on the same address. Then had issues getting the container to set a whitelabel correctly as it was having issues parsing the spaces.
Finally got it up, but as some feedback I'd say there are way too many variables that need to fall into alignment and be documented to those that aren't well-initiated with docker which is already an opinionated way of managing software. Definitely going to keep an eye on this project but I'm probably better off looking elsewhere for a solution for now. Thanks for your help!
My .env
file if it helps but I left a lot of the settings at their defaults.
# This file shows all of the environment variables you can
# set to configure Shynet, as well as information about their
# effects. Make a copy of this file to configure your deployment.
# Database settings (PostgreSQL)
DB_NAME=<my_db_name>
DB_USER=<my_db_user>
DB_PASSWORD=<my_db_password>
DB_HOST=<my_db_host ('localhost' does not work, must be a real, reachable IP)
DB_PORT=5432
# Email settings (optional)
EMAIL_HOST_USER=example
EMAIL_HOST_PASSWORD=example_password
EMAIL_HOST=smtp.example.com
SERVER_EMAIL=<Shynet> [email protected]
# General Django settings
DJANGO_SECRET_KEY=<random_hash>
# For better security, set this to your deployment's domain. Comma separated.
ALLOWED_HOSTS=*
# Set to True (capitalized) if you want people to be able to sign up for your Shynet instance (not recommended)
SIGNUPS_ENABLED=False
# The timezone of the admin panel. Affects how dates are displayed.
TIME_ZONE=America/New_York
# Set to "False" if you will not be serving content over HTTPS
SCRIPT_USE_HTTPS=True
# How frequently should the monitoring script "phone home" (in ms)?
SCRIPT_HEARTBEAT_FREQUENCY=5000
# How much time can elapse between requests from the same user before a new
# session is created, in seconds?
SESSION_MEMORY_TIMEOUT=1800
# Should only superusers (admins) be able to create services? This is helpful
# when you'd like to invite others to your Shynet instance but don't want
# them to be able to create services of their own.
ONLY_SUPERUSERS_CREATE=True
# Whether to perform checks and setup at startup, including applying unapplied
# migrations. For most setups, the recommended value is True. Defaults to True.
# Will skip only if value is False.
PERFORM_CHECKS_AND_SETUP=True
# Your admin user's email. A temporary password will be printed
# to the console on first run.
[email protected]
# The domain on which you'll be hosting Shynet.
SHYNET_HOST=shynet.example.com
# What you'd like to call your Shynet instance.
SHYNET_WHITELABEL=My Shynet Instance
# Redis, queue, and parellization settings; not necessary for single-instance deployments.
# Don't uncomment these unless you know what you are doing!
# NUM_WORKERS=1
# Make sure you set a REDIS_CACHE_LOCATION if you have more than one frontend worker/instance.
# REDIS_CACHE_LOCATION=redis://redis.default.svc.cluster.local/0
# If CELERY_BROKER_URL is set, make sure CELERY_TASK_ALWAYS_EAGER is False and
# that you have a separate queue consumer running somewhere via `celeryworker.sh`.
# CELERY_TASK_ALWAYS_EAGER=False
# CELERY_BROKER_URL=redis://redis.default.svc.cluster.local/1
from shynet.
Related Issues (20)
- Reset password HOT 2
- Add the ability to create an admin user from environment variables HOT 1
- Github container's last publish date was over 3 years ago.
- No support for redis sentinel caches. HOT 4
- Fix tests GitHub Action
- Don't commit MaxMind license key to your repository HOT 6
- Unknown icons cannot load HOT 1
- 502 Bad Gateway HOT 2
- Install SSL
- Question regarding Requests HOT 2
- cannot load HOT 1
- Correct hostname for emails HOT 3
- docker SSL setup
- Install as app into existing Django backends HOT 1
- MySQL Support? HOT 1
- Sent email validation
- Dependency Updates HOT 3
- rpds-py error: subprocess-exited-with-error
- Shynet configure SSL [Chinese tutorial]
- CSRF verification failed. Request aborted.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shynet.