-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #218 from volunteers-for-city-projects/feature/https
Added settings for https
- Loading branch information
Showing
2 changed files
with
31 additions
and
25 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,30 +1,34 @@ | ||
server { | ||
listen 80; | ||
server_tokens off; | ||
client_max_body_size 20M; | ||
listen 80; | ||
server_tokens off; | ||
client_max_body_size 20M; | ||
|
||
root /usr/share/nginx/html/; | ||
proxy_set_header Host $http_host; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto $http_x_forwarded_proto; | ||
proxy_set_header X-Real-IP $http_x_real_ip; | ||
|
||
location /api/ { | ||
proxy_set_header Host $http_host; | ||
proxy_pass http://backend:8000/api/; | ||
} | ||
location /swagger/ { | ||
proxy_set_header Host $http_host; | ||
proxy_pass http://backend:8000/swagger/; | ||
} | ||
location /redoc/ { | ||
proxy_set_header Host $http_host; | ||
proxy_pass http://backend:8000/redoc/; | ||
} | ||
location /admin/ { | ||
proxy_set_header Host $http_host; | ||
proxy_pass http://backend:8000/admin/; | ||
} | ||
root /usr/share/nginx/html/; | ||
|
||
location / { | ||
if (!-e $request_filename){ | ||
rewrite ^(.*)$ /index.html break; | ||
} | ||
} | ||
location /api/ { | ||
proxy_pass http://backend:8000/api/; | ||
} | ||
|
||
location /swagger/ { | ||
proxy_pass http://backend:8000/swagger/; | ||
} | ||
|
||
location /redoc/ { | ||
proxy_pass http://backend:8000/redoc/; | ||
} | ||
|
||
location /admin/ { | ||
proxy_pass http://backend:8000/admin/; | ||
} | ||
|
||
location / { | ||
if (!-e $request_filename){ | ||
rewrite ^(.*)$ /index.html break; | ||
} | ||
} | ||
} |