Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main' into main
Browse files Browse the repository at this point in the history
  • Loading branch information
Benoit Alessandroni committed Jul 17, 2023
2 parents 574718f + fd32f8c commit 108334a
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 8 deletions.
5 changes: 3 additions & 2 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -14,5 +14,6 @@ COPY . /usr/src/app
WORKDIR /usr/src/app/server
RUN python manage.py migrate
EXPOSE 8000

CMD ["python", "-u", "manage.py", "runserver", "0.0.0.0:8000"]
ENV DEBUG=False
ENV SECRET_KEY='xx'
CMD ["python", "manage.py", "runserver", "0.0.0.0:8000"]
9 changes: 7 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ You can create a superuser with `./manage.py createsuperuser` to be able to acce
## Usage
You can navigate the API using the url `http://myserver.com/docs/` (Swagger based OpenAPI documentation, default on localhost:8000).

## ENVS

- DEBUG = False (if we should enable debug mode in django)
- SECRET_KEY = secret key for django

# Dockerfile usage
You can also just build the available Dockerfile and run the server from there using the following commands:

Expand All @@ -50,5 +55,5 @@ Thanks to the $OCEAN community for the funding and the $OCEAN core team for the
This project is delivered under an Apache License

## Additional projects
- DBS Arweave microservice (https://github.com/oceanprotocol/dbs_filecoin)
- DBS Filecoin microservice (https://github.com/oceanprotocol/dbs_arweave)
- DBS Filecoin microservice (https://github.com/oceanprotocol/dbs_filecoin)
- DBS Arweave microservice (https://github.com/oceanprotocol/dbs_arweave)
7 changes: 3 additions & 4 deletions server/server/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,13 +25,12 @@
# See https://docs.djangoproject.com/en/2.2/howto/deployment/checklist/

# SECURITY WARNING: keep the secret key used in production secret!
SECRET_KEY = '6e_qi$a_w5rni$dl)!r-xq-h*=da6q3#4gs4k3%+p(bd42yrv+'
SECRET_KEY = os.environ.get("SECRET_KEY")

# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True
PYTHONUNBUFFERED = True
DEBUG = os.environ.get("DEBUG",False)

ALLOWED_HOSTS = []
ALLOWED_HOSTS = ['*']


# Application definition
Expand Down

0 comments on commit 108334a

Please sign in to comment.