Skip to content

Commit

Permalink
change postgres configs
Browse files Browse the repository at this point in the history
  • Loading branch information
Milad Beigi committed Jan 18, 2022
1 parent 25381da commit 779a48d
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .env
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ COMPOSE_PROJECT_NAME=sentry-self-hosted
SENTRY_EVENT_RETENTION_DAYS=90
# You can either use a port number or an IP:PORT combo for SENTRY_BIND
# See https://docs.docker.com/compose/compose-file/#ports for more
SENTRY_BIND=9000
SENTRY_BIND=80
# Set SENTRY_MAIL_HOST to a valid FQDN (host/domain name) to be able to send emails!
# SENTRY_MAIL_HOST=example.com
SENTRY_IMAGE=getsentry/sentry:22.1.0
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,6 @@ data/
.vscode/tags

# custom Sentry config
sentry/sentry.conf.py
sentry/config.yml
sentry/*.bak
sentry/requirements.txt
Expand Down
2 changes: 1 addition & 1 deletion install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ source parse-cli.sh
source dc-detect-version.sh
source error-handling.sh
source check-latest-commit.sh
source check-minimum-requirements.sh
# source check-minimum-requirements.sh

# Let's go! Start impacting things.
source turn-things-off.sh
Expand Down
13 changes: 8 additions & 5 deletions sentry/sentry.conf.example.py → sentry/sentry.conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@

from sentry.conf.server import * # NOQA

import os
env = os.environ.get


# Generously adapted from pynetlinux: https://git.io/JJmga
def get_internal_network():
Expand Down Expand Up @@ -36,11 +39,11 @@ def get_internal_network():
DATABASES = {
"default": {
"ENGINE": "sentry.db.postgres",
"NAME": "postgres",
"USER": "postgres",
"PASSWORD": "",
"HOST": "postgres",
"PORT": "",
"NAME": env("POSTGRES_DB"),
"USER": env("POSTGRES_USER"),
"PASSWORD": env("POSTGRES_PASSWORD"),
"HOST": env("POSTGRES_HOST"),
"PORT": int(env("POSTGRES_PORT"))
}
}

Expand Down

0 comments on commit 779a48d

Please sign in to comment.