Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Legger inn endringslogg for ung #6843

Draft
wants to merge 1 commit into
base: dev-ung
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions deploy/ung/dev-gcp.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,8 @@ spec:
value: "http://ung-sak"
- name: APP_PORT
value: "9005"
- name: ENDRINGSLOGG_URL
value: "https://familie-endringslogg.intern.nav.no/"

# Feature-flag
- name: KLAGE_KABAL
Expand Down
1 change: 0 additions & 1 deletion packages/ung/sak-app/app/components/Dekorator.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,6 @@ const Dekorator = ({
aaregPath={getAaregPath()}
ytelse="Ungdomsytelse"
headerTitleHref="/ung/web"
showEndringslogg={false}
/>
);
};
Expand Down
11 changes: 11 additions & 0 deletions ung.proxy.nginx
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,17 @@ server {
error_page 504 = @504_json;
}

location "/ung/endringslogg/" {
proxy_ssl_server_name on;
proxy_pass "${ENDRINGSLOGG_URL}";
proxy_intercept_errors on;
proxy_http_version 1.1;
error_page 401 = @401_json;
error_page 403 = @403_json;
error_page 404 = @404_json;
error_page 504 = @504_json;
}

# If no asset matches, send it to your javascript app. Hopefully it's a route in the app!
location @rewrites {
rewrite ^(.+)$ "/ung/web/index.html" last;
Expand Down
6 changes: 6 additions & 0 deletions ung.vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,6 +71,12 @@ export default ({ mode }) => {
});
},
},
'ung/endringslogg': createProxy(
process.env.ENDRINGSLOGG_URL || 'https://familie-endringslogg.intern.dev.nav.no',
{
'^/ung/endringslogg': '',
},
),
'/ung/feature-toggle/toggles.json': createMockResponder('http://localhost:8085', staticJsonResponse(featureTogglesFactory())),
},
},
Expand Down