Skip to content

Commit

Permalink
added ip address
Browse files Browse the repository at this point in the history
  • Loading branch information
walosha committed Feb 11, 2023
1 parent 9950d14 commit cb4ef79
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
6 changes: 2 additions & 4 deletions config/nginx/default.conf.template
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@ upstream daphne {

server {
listen 80;
# server_name www.church.com church.com;
server_name localhost;
server_name 157.230.16.234;

return 301 https://$host$request_uri;
}
Expand All @@ -21,8 +20,7 @@ server {
listen 443 ssl;
ssl_certificate /code/church/ssl/church.crt;
ssl_certificate_key /code/church/ssl/church.key;
# server_name www.church.com church.com;
server_name localhost;
server_name 157.230.16.234;
error_log stderr warn;
access_log /dev/stdout main;

Expand Down
11 changes: 5 additions & 6 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
`

- Clone this repository
- docker compose --build && docker compose up
- docker-compose --build && docker compose up
- source ./venv/bin/activate
- pip install -r requirements.txt
- python manage.py makemigrations
Expand All @@ -15,11 +15,10 @@
@@ Access swagger documentation on : api/doc/#/

`
docker compose exec web python /code/church/manage.py migrate
docker compose exec web python /code/church/manage.py collectstatic
docker-compose exec web python /code/church/manage.py migrate
docker-compose exec web python /code/church/manage.py collectstatic
or
python manage.py collectstatic --settings=church.settings.local

python manage.py collectstatic --settings=core.settings.local
python manage.py check --settings=core.settings.prod (church directory)

python manage.py check --deploy --settings=church.settings.prod ( check for deploy issues)
Expand All @@ -32,7 +31,7 @@ openssl req -x509 -newkey rsa:2048 -sha256 -days 3650 -nodes \
-addext 'subjectAltName=DNS:_.church.com'

//reload NGNIX
docker compose exec nginx nginx -s reload
docker-compose exec nginx nginx -s reload

`

Expand Down

0 comments on commit cb4ef79

Please sign in to comment.