-
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.
fix(ci): change url location for email
- Loading branch information
Showing
5 changed files
with
26 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,23 +1,23 @@ | ||
server { | ||
listen 5173; | ||
resolver 8.8.8.8; | ||
location / { | ||
root /usr/share/nginx/html; | ||
index index.html index.htm; | ||
try_files $uri $uri/ /index.html =404; | ||
} | ||
location ~ ^/api/(.*)$ { | ||
proxy_pass https://scanr-api.dataesr.ovh/$1$is_args$args; | ||
proxy_set_header Authorization 'Basic $VITE_SCANR_API_AUTHORIZATION'; | ||
proxy_set_header Accept application/json; | ||
proxy_set_header Content-Type application/json; | ||
client_max_body_size 10M; | ||
} | ||
location /email/ { | ||
proxy_set_header accept application/json; | ||
proxy_set_header api-key $VITE_BREVO_API_AUTHORIZATION; | ||
proxy_set_header content-type application/json; | ||
proxy_ssl_server_name on; | ||
proxy_pass https://api.brevo.com/v3/smtp/email; | ||
} | ||
listen 5173; | ||
resolver 8.8.8.8; | ||
location / { | ||
root /usr/share/nginx/html; | ||
index index.html index.htm; | ||
try_files $uri $uri/ /index.html =404; | ||
} | ||
location ~ ^/api/(.*)$ { | ||
proxy_pass https://scanr-api.dataesr.ovh/$1$is_args$args; | ||
proxy_set_header Authorization 'Basic $VITE_SCANR_API_AUTHORIZATION'; | ||
proxy_set_header Accept application/json; | ||
proxy_set_header Content-Type application/json; | ||
client_max_body_size 10M; | ||
} | ||
location /email/ { | ||
proxy_set_header accept application/json; | ||
proxy_set_header api-key $VITE_BREVO_API_AUTHORIZATION; | ||
proxy_set_header content-type application/json; | ||
proxy_ssl_server_name on; | ||
proxy_pass https://api.brevo.com/v3/smtp/email; | ||
} | ||
} |
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
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