Skip to content

Commit

Permalink
Merge pull request #35 from DaemonLab/server
Browse files Browse the repository at this point in the history
Server
  • Loading branch information
mittal-ishaan authored Sep 22, 2023
2 parents a8a5988 + a755a51 commit 37b3b78
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
4 changes: 2 additions & 2 deletions messWebsite/settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
# SECURITY WARNING: don't run with debug turned on in production!
DEBUG = True

ALLOWED_HOSTS = ["*"]

ALLOWED_HOSTS = ["diningfee.iiti.ac.in","127.0.0.1"]
CSRF_TRUSTED_ORIGINS = ['http://diningfee.iiti.ac.in',"localhost"]
# Application definition

INSTALLED_APPS = [
Expand Down
3 changes: 2 additions & 1 deletion nginx/default.conf
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@ upstream django{

server{
listen 80;


proxy_set_header HOST $host;
location /{
proxy_pass http://django;
}
Expand Down

0 comments on commit 37b3b78

Please sign in to comment.