diff --git a/CHANGELOG.md b/CHANGELOG.md index 35083a942..e8d63b17f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Added a dialog for the benchmarks in the markets overview +### Changed + +- Set up SSL for local development + ## 2.89.0 - 2024-06-14 ### Added diff --git a/README.md b/README.md index 2d49124b8..cd8af7af2 100644 --- a/README.md +++ b/README.md @@ -161,7 +161,7 @@ Ghostfolio is available for various home server systems, including [CasaOS](http 1. Run `yarn database:setup` to initialize the database schema 1. Run `git config core.hooksPath ./git-hooks/` to setup git hooks 1. Start the server and the client (see [_Development_](#Development)) -1. Open http://localhost:4200/en in your browser +1. Open https://localhost:4200/en in your browser 1. Create a new user via _Get Started_ (this first user will get the role `ADMIN`) ### Start Server @@ -176,7 +176,7 @@ Run `yarn start:server` ### Start Client -Run `yarn start:client` and open http://localhost:4200/en in your browser +Run `yarn start:client` and open https://localhost:4200/en in your browser ### Start _Storybook_ diff --git a/apps/client/localhost.cert b/apps/client/localhost.cert new file mode 100644 index 000000000..12f31dd27 --- /dev/null +++ b/apps/client/localhost.cert @@ -0,0 +1,18 @@ +-----BEGIN CERTIFICATE----- +MIIC5TCCAc2gAwIBAgIJAJAMHOFnJ6oyMA0GCSqGSIb3DQEBCwUAMBQxEjAQBgNV +BAMMCWxvY2FsaG9zdDAeFw0yNDAyMjcxNTQ2MzFaFw0yNDAzMjgxNTQ2MzFaMBQx +EjAQBgNVBAMMCWxvY2FsaG9zdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC +ggEBAJ0hRjViikEKVIyukXR4CfuYVvFEFzB6AwAQ9Jrz2MseqpLacLTXFFAS54mp +iDuqPBzs9ta40mlSrqSBuAWKikpW5kTNnmqUnDZ6iSJezbYWx9YyULGqqb1q3C4/ +5pH9m6NHJ+2uaUNKlDxYNKbntqs3drQEdxH9yv672Z53nvogTcf9jz6zjutEQGSV +HgVkCTTQmzf3+3st+VJ5D8JeYFR+tpZ6yleqgXFaTMtPZRfKLvTkQ+KeyCJLnsUJ +BQvdCKI0PGsG6d6ygXFmSePolD9KW3VTKKDPCsndID89vAnRWDj9UhzvycxmKpcF +GrUPH5+Pis1PM1R7OnAvnFygnyECAwEAAaM6MDgwFAYDVR0RBA0wC4IJbG9jYWxo +b3N0MAsGA1UdDwQEAwIHgDATBgNVHSUEDDAKBggrBgEFBQcDATANBgkqhkiG9w0B +AQsFAAOCAQEAOdzrY3RTAPnBVAd3/GKIEkielYyOgKPnvd+RcOB+je8cXZY+vaxX +uEFP0526G00+kRZ2Tx9t0SmjoSpwg3lHUPMko0dIxgRlqISDAohdrEptHpcVujsD +ak88LLnAurr60JNjWX2wbEoJ18KLtqGSnATdmCgKwDPIN5a7+ssp44BGyzH6VYCg +wV3VjJl0pp4C5M0Jfu0p1FrQjzIVhgqR7JFYmvqIogWrGwYAQK/3XRXq8t48J5X3 +IsfWiLAA2ZdCoWAnZ6PAGBOoGivtkJm967pHjd/28qYY6mQo4sN2ksEOjx6/YslF +2mOJdLV/DzqoggUsTpPEG0dRhzQLTGHKDQ== +-----END CERTIFICATE----- diff --git a/apps/client/localhost.pem b/apps/client/localhost.pem new file mode 100644 index 000000000..dc2a7ff5a --- /dev/null +++ b/apps/client/localhost.pem @@ -0,0 +1,28 @@ +-----BEGIN PRIVATE KEY----- +MIIEvAIBADANBgkqhkiG9w0BAQEFAASCBKYwggSiAgEAAoIBAQCdIUY1YopBClSM +rpF0eAn7mFbxRBcwegMAEPSa89jLHqqS2nC01xRQEueJqYg7qjwc7PbWuNJpUq6k +gbgFiopKVuZEzZ5qlJw2eokiXs22FsfWMlCxqqm9atwuP+aR/ZujRyftrmlDSpQ8 +WDSm57arN3a0BHcR/cr+u9med576IE3H/Y8+s47rREBklR4FZAk00Js39/t7LflS +eQ/CXmBUfraWespXqoFxWkzLT2UXyi705EPinsgiS57FCQUL3QiiNDxrBunesoFx +Zknj6JQ/Slt1UyigzwrJ3SA/Pb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0MvSJ9crT9KzXMeC8Knr6z +7Z30/BR6ksxTngtS5E5grzPt6Qe/gc2ich3kpEkCgYBfBHUhVIKVrDW/8a7U2679 +Wj4i9us/M3iPMxcTv7/ZAg08TEvNBQYtvVQLu0NfDKXx8iGKJJ6evIYgNXVm2sPq +VzSgwGCALi1X0443amZU+mnX+/9RnBqyM+PJU8570mM83jqKlY/BEsi0aqxTioFG +an3xbjjN+Rq9iKLzmPxIMg== +-----END PRIVATE KEY----- diff --git a/apps/client/project.json b/apps/client/project.json index 0cd576e16..153ae02d1 100644 --- a/apps/client/project.json +++ b/apps/client/project.json @@ -163,8 +163,11 @@ "serve": { "executor": "@nx/angular:dev-server", "options": { + "buildTarget": "client:build", "proxyConfig": "apps/client/proxy.conf.json", - "buildTarget": "client:build" + "ssl": true, + "sslCert": "apps/client/localhost.cert", + "sslKey": "apps/client/localhost.pem" }, "configurations": { "development-de": { diff --git a/libs/common/src/lib/config.ts b/libs/common/src/lib/config.ts index cd0f207da..b7f20a978 100644 --- a/libs/common/src/lib/config.ts +++ b/libs/common/src/lib/config.ts @@ -41,7 +41,7 @@ export const DEFAULT_CURRENCY = 'USD'; export const DEFAULT_DATE_FORMAT_MONTH_YEAR = 'MMM yyyy'; export const DEFAULT_LANGUAGE_CODE = 'en'; export const DEFAULT_PAGE_SIZE = 50; -export const DEFAULT_ROOT_URL = 'http://localhost:4200'; +export const DEFAULT_ROOT_URL = 'https://localhost:4200'; // USX is handled separately export const DERIVED_CURRENCIES = [