forked from pclubiitk/puppy-love
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
7ea2f9f
commit f1f2976
Showing
2 changed files
with
33 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,26 +1,34 @@ | ||
server { | ||
listen 80; | ||
server_name puppy.pclub.in; | ||
listen 80; | ||
server_name dev.puppy.pclub.in; | ||
|
||
location /api/ { | ||
proxy_pass http://127.0.0.1:3000/; | ||
proxy_set_header Connection ''; | ||
proxy_set_header Host 'puppy.pclub.in'; | ||
add_header 'Access-Control-Allow-Origin' $host; | ||
proxy_http_version 1.1; | ||
proxy_cookie_domain .pclub.in puppy.pclub.in; | ||
chunked_transfer_encoding off; | ||
proxy_connect_timeout 5m; | ||
proxy_read_timeout 5m; | ||
} | ||
location /api { | ||
# proxy_pass http://pclub.cse.iitk.ac.in; | ||
proxy_pass http://localhost:3000; | ||
proxy_set_header Connection ''; | ||
proxy_set_header Host 'pclub.cse.iitk.ac.in'; | ||
proxy_set_header Referrer 'pclub.cse.iitk.ac.in'; | ||
add_header 'Access-Control-Allow-Origin' $host; | ||
proxy_http_version 1.1; | ||
chunked_transfer_encoding off; | ||
proxy_connect_timeout 5m; | ||
proxy_read_timeout 5m; | ||
} | ||
|
||
location /Oa { | ||
proxy_pass http://oa.cc.iitk.ac.in:80; | ||
proxy_set_header Connection ''; | ||
add_header 'Access-Control-Allow-Origin' $host; | ||
proxy_http_version 1.1; | ||
chunked_transfer_encoding off; | ||
proxy_connect_timeout 5m; | ||
proxy_read_timeout 5m; | ||
} | ||
|
||
location / { | ||
proxy_pass http://localhost:8091/; | ||
proxy_http_version 1.1; | ||
proxy_read_timeout 86400; | ||
add_header 'Access-Control-Allow-Origin' 'puppy.pclub.in'; | ||
|
||
# try_files $uri $uri/ =404; | ||
} | ||
location / { | ||
proxy_pass http://localhost:8091/; | ||
proxy_http_version 1.1; | ||
proxy_read_timeout 86400; | ||
proxy_set_header Host 'pclub.cse.iitk.ac.in'; | ||
} | ||
} |