-
Notifications
You must be signed in to change notification settings - Fork 22
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 #134 from openimis/release/24.04
Release/24.04
- Loading branch information
Showing
24 changed files
with
39,683 additions
and
330 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 |
---|---|---|
@@ -1,5 +1,6 @@ | ||
name: create daily docker image on develop | ||
on: | ||
workflow_dispatch: | ||
schedule: | ||
- cron: "0 2 * * *" | ||
jobs: | ||
|
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
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,21 @@ | ||
|
||
location /${REACT_APP_API_URL}/ { | ||
|
||
proxy_pass http://${backend}; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Host $server_name; | ||
proxy_set_header X-Forwarded-Proto https; | ||
} | ||
location = /check_user/ { | ||
internal; | ||
proxy_pass_request_body off; | ||
proxy_set_header Content-Length ""; | ||
proxy_set_header X-Original-URI $request_uri; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_pass http://${backend}/${REACT_APP_API_URL}/core/users/current_user/; | ||
} | ||
|
||
|
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,3 @@ | ||
location /.well-known/acme-challenge/ { | ||
root /var/www/certbot; | ||
} |
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,10 @@ | ||
|
||
|
||
location / { | ||
return 302 https://$host/${PUBLIC_URL}/; | ||
} | ||
|
||
location /${PUBLIC_URL} { | ||
try_files $uri $uri/ /${PUBLIC_URL}/index.html; | ||
#error_page 404 $scheme://$host/front/; | ||
} |
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,14 @@ | ||
|
||
location /lightning/ { | ||
|
||
rewrite /lightning/(.*) /$1 break; | ||
proxy_pass http://${lightning}; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto https; | ||
proxy_set_header X-Forwarded-Host $server_name; | ||
|
||
|
||
} | ||
|
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,13 @@ | ||
|
||
location /opensearch/ { | ||
auth_request /check_user/; | ||
proxy_pass http://${opensearch}; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto https; | ||
proxy_set_header X-Forwarded-Host $server_name; | ||
proxy_set_header Authorization "Basic ${OPENSEARCH_BASIC_TOKEN}"; | ||
|
||
} | ||
|
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,14 @@ | ||
|
||
|
||
location /${ROOT_MOBILEAPI}/ { | ||
|
||
#this rewrite rule is required to remove "ROOT_MOBILEAPI" because implicite rule (/ at the end of the url) donc work with variable | ||
rewrite /${ROOT_MOBILEAPI}/(.*) /$1 break; | ||
proxy_pass http://${restapi}; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto https; | ||
proxy_set_header X-Forwarded-Host $server_name; | ||
|
||
} |
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,50 +1,20 @@ | ||
|
||
server { | ||
resolver 127.0.0.11 valid=30s; | ||
set $dockerbackend "backend:8000"; | ||
set $dockerrestapi "restapi:80"; | ||
resolver 127.0.0.11 valid=30s; | ||
|
||
client_max_body_size ${DATA_UPLOAD_MAX_MEMORY_SIZE}; | ||
listen 443 ssl; | ||
listen 80; | ||
server_name ${NEW_OPENIMIS_HOST}; | ||
|
||
ssl_certificate /etc/letsencrypt/live/${NEW_OPENIMIS_HOST}/fullchain.pem; | ||
ssl_certificate_key /etc/letsencrypt/live/${NEW_OPENIMIS_HOST}/privkey.pem; | ||
root /usr/share/nginx/html; | ||
location /.well-known/acme-challenge/ { | ||
root /var/www/certbot; | ||
} | ||
location /.well-known { | ||
root /var/www/html; | ||
} | ||
client_max_body_size ${DATA_UPLOAD_MAX_MEMORY_SIZE}; | ||
listen 443 ssl; | ||
listen 80; | ||
server_name ${NEW_OPENIMIS_HOST}; | ||
|
||
location / { | ||
return 302 https://$host/${PUBLIC_URL}/${REDIRECT_TAIL}; | ||
} | ||
ssl_certificate /etc/letsencrypt/live/${NEW_OPENIMIS_HOST}/fullchain.pem; | ||
ssl_certificate_key /etc/letsencrypt/live/${NEW_OPENIMIS_HOST}/privkey.pem; | ||
root /usr/share/nginx/html; | ||
|
||
location /${PUBLIC_URL} { | ||
try_files $uri $uri/ /${PUBLIC_URL}/index.html; | ||
#error_page 404 $scheme://$host/front/; | ||
} | ||
location /.well-known { | ||
root /var/www/html; | ||
} | ||
###INCLUDE_PLACEHOLDER### | ||
|
||
location /${REACT_APP_API_URL}/ { | ||
proxy_pass http://${dockerbackend}; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Host $server_name; | ||
proxy_set_header X-Forwarded-Proto https; | ||
} | ||
|
||
location /${ROOT_MOBILEAPI}/ { | ||
#this rewrite rule is required to remove "ROOT_MOBILEAPI" because implicite rule (/ at the end of the url) donc work with variable | ||
rewrite /${ROOT_MOBILEAPI}/(.*) /$1 break; | ||
proxy_pass http://${dockerrestapi}; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
proxy_set_header X-Forwarded-Proto https; | ||
proxy_set_header X-Forwarded-Host $server_name; | ||
} | ||
} | ||
} |
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,4 @@ | ||
set $backend "backend:8000"; | ||
set $opensearch "opensearch-dashboards:5601"; | ||
set $lightning "lightning:4000"; | ||
set $frontend "lightning:4000"; |
Oops, something went wrong.