Skip to content

Commit 3d66373

Browse files
committed
test
1 parent 8036f16 commit 3d66373

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed

src/frontend/apps/impress/conf/default.conf

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,29 @@ server {
55

66
root /usr/share/nginx/html;
77

8+
# Proxy /home to the new landing page
9+
location = /home {
10+
proxy_pass https://lasuite.numerique.gouv.fr/produits/docs;
11+
proxy_ssl_server_name on;
12+
proxy_set_header Host lasuite.numerique.gouv.fr;
13+
proxy_set_header X-Real-IP $remote_addr;
14+
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
15+
proxy_set_header X-Forwarded-Proto $scheme;
16+
17+
# Handle redirects
18+
proxy_redirect off;
19+
20+
# Rewrite asset URLs to use the external site
21+
sub_filter_once off;
22+
sub_filter_types text/html text/css text/javascript application/javascript;
23+
sub_filter 'href="/' 'href="https://lasuite.numerique.gouv.fr/';
24+
sub_filter 'src="/' 'src="https://lasuite.numerique.gouv.fr/';
25+
sub_filter "href='/" "href='https://lasuite.numerique.gouv.fr/";
26+
sub_filter "src='/" "src='https://lasuite.numerique.gouv.fr/";
27+
28+
add_header X-Frame-Options DENY always;
29+
}
30+
831
location / {
932
try_files $uri index.html $uri/index.html =404;
1033

0 commit comments

Comments
 (0)