-
Notifications
You must be signed in to change notification settings - Fork 2
Migration notes
Benoit Orihuela edited this page Dec 20, 2018
·
34 revisions
In application.yml :
- Create an object
confswhich will contain configuration for the different portal. Don't forget to add a new conf here when you add a new domain name, the critical key isconfs.yourWebSite.url. For exampleconfscontains Ozwillo portal configuration :
confs:
ozwillo:
url: https://portal.ozwillo.com
error_401: https://portal.ozwillo.com/my
baseImageUrl: ${confs.ozwillo.url}/media
defaultIconUrl: ${confs.ozwillo.url}/img/noicon.png
web:
googleTag: googleTagHere
home: https://www.ozwillo.com
sitemap:
url_footer: ${confs.ozwillo.web.home}/footer.json
kernel:
client_id: clientIdHere
client_secret: clientSecretHere
callback_uri: ${confs.ozwillo.url}/callback
post_logout_redirect_uri: ${conf.ozwillo.url}/fr/store
home_uri: ${confs.ozwillo.url}/my
opendata:
url: https://opendata.ozwillo.com
- Don't forget to replace
clientIdHere,clientSecretHereandgoogleTagHerewith your values. - Remove
opendataobject - Remove web's keys :
home,url_header,url_footer - Remove kernel's keys :
client_id,client_secret,callback_uri,home_uri - Remove application's keys :
baseImageUrl,defaultIconUrl,url,error.401 - Remove
spring.mailobject - Remove
mailobject - Remove
captchaobject
In your MongoDB's portal and portal_test :
- Remove
sitemapandsitemapheadercollections. - To add a new theme create a new entry in
style_propertiescollection, and add your CSS properties.
- Migrate portal app id (
java -cp "/usr/lib/oasis/lib/*" oasis.tools.MigratePortalAppId -c /etc/oasis/oasis.conf) - destroy and recreate Kernel's ES indexes
No special actions needed.
In application.yml :
- Add the key
application.error.401(link to the portal entry point, eg https://portal.ozwillo-preprod.eu/my)
In application.yml :
- Rename the key
spring.http.multipart.max-file-sizetospring.servlet.multipart.max-file-size
In application.yml :
- Remove the following key :
kernel.maxUserMembershipsPerPage
- Add the following key (used to batch import organizations) :
application.importPassword
- Add the FranceConnect keys :
account_france_connect_uri: ${kernel.account_uri}/a/franceconnect
kernel_france_connect_uri: ${kernel.base_uri}/a/franceconnect
france_connect:
link_endpoint: ${kernel.account_france_connect_uri}/login
unlink_endpoint: ${kernel.account_france_connect_uri}/unlink
userinfo_endpoint: ${kernel.kernel_france_connect_uri}/userinfo
enabled: false
The page /my/network no longer exists and is automatically redirected to /my/organization. Please update your links to this page.
You should add secret, siteKey and account_uri in application.yml for the reCaptcha Google API
// application.yml
kernel:
account_uri:
captcha:
secret:
sitekey:
In application.yml :
- Remove the following keys :
application.imageBlacklistTtl application.installedStatusTtl application.catalogCacheTtl
- Update mail configuration
Before restarting the application, clean up the sitemap and sitemapheader collections.
In application.yml, add the following keys :
spring.output.ansi.enabled: DETECT
server:
compression.enabled: true
# only for 64x64 pngs which should be mostly below 5000B
multipart.max-file-size: 20KB
And remove the web.maxUploadSize key.
In application.yml, apply the following changes :
- Remove spring.thymeleaf.cache property (automatically managed by Spring Boot)
In application.yml, apply the following changes :
- Change Kernel's URL to https (instead of http)