-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: update docker compose and readme for https bo access instructions
- Loading branch information
Showing
4 changed files
with
83 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,6 +11,7 @@ static-front/ | |
logs/ | ||
hs_err_pid*.log | ||
tmp | ||
**/certs/* | ||
|
||
### STS ### | ||
.apt_generated | ||
|
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 |
---|---|---|
@@ -0,0 +1,36 @@ | ||
events { | ||
use epoll; | ||
worker_connections 128; | ||
} | ||
|
||
http { | ||
upstream df-bo-server { | ||
server host.docker.internal:8081; | ||
} | ||
server { | ||
listen 80; | ||
listen [::]:80; | ||
server_name bo-local.dossierfacile.fr; | ||
location / { | ||
return 302 https://$host$request_uri; | ||
} | ||
} | ||
server { | ||
listen 443 ssl; | ||
listen [::]:443 ssl; | ||
server_name bo-local.dossierfacile.fr; | ||
ssl_certificate /etc/nginx/certs/nginx.crt; | ||
ssl_certificate_key /etc/nginx/certs/nginx.key; | ||
location / { | ||
proxy_pass http://df-bo-server/; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Host $host; | ||
proxy_set_header X-Forwarded-Proto $scheme; | ||
proxy_set_header Host $host; | ||
proxy_redirect default; | ||
} | ||
location /static/ { | ||
alias /static/; | ||
} | ||
} | ||
} |
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