Skip to content

Commit

Permalink
feat: Add production configuration and Nginx Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
narenaryan committed Apr 8, 2023
1 parent de68eb0 commit 900327f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Dockerfile.nginx
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
FROM nginx:stable

# Install necessary packages
RUN apt-get update \
&& apt-get install -y certbot python3-certbot-nginx \
&& apt-get clean \
&& rm -rf /var/lib/apt/lists/*
2 changes: 2 additions & 0 deletions vidura/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,3 +145,5 @@
DEFAULT_AUTO_FIELD = 'django.db.models.BigAutoField'

ALLOWED_HOSTS = ['*']

CSRF_TRUSTED_ORIGINS = ['https://*.vidura.ai']

0 comments on commit 900327f

Please sign in to comment.