<li>In folder <code>org.etsi.osl.main/compose/mysql-init</code> edit the file <code>01-databases.sql</code>.</li>
<li>In the <code>org.etsi.osl.main/compose/docker-compose.yaml</code> edit the credentials of the users that services use to connect to the databases, if you wish.</li>
<li>In the <code>org.etsi.osl.main/compose/docker-compose.yaml</code> edit the credentials of the users that services use to connect to the databases, if you wish.<ul>
"main_operations_product":"Main Site Operations" // this is the default product to issue tickets
</code></pre>
@@ -1668,43 +1632,50 @@ And add the provided Bugzilla installation information:</p>
<li>If you want to change logging level (TRACE / DEBUG / INFO / WARN / ERROR).</li>
</ul>
<blockquote>
<p><strong>If you are using a non-local domain, replace everywhere the http://keycloak:8080 with the respective {{protocol://domain.name}}, as well as "spring.portal.main.domain" property.</strong></p>
</blockquote>
<p>In folder <code>org.etsi.osl.main/compose/</code> edit the file <code>docker-compose.yaml</code>
<h3id="6-osscapi-container-tmf-api-service-conditional">6. osscapi container (TMF API service) <em>(conditional)</em></h3>
<p>Change the respective fields: </p>
<ul>
<li>If you made changes to mysql and keycloak credentials.</li>
<li>If you want to change logging level (TRACE / DEBUG / INFO / WARN / ERROR).</li>
</ul>
<blockquote>
<p><strong>If you are using a non-local domain, replace everywhere the http://keycloak:8080 with the respective {{protocol://domain.name}}.</strong></p>
<p><strong><em>If you are using a non-local domain, replace everywhere the http://keycloak:8080 with the respective {{protocol://domain.name}}, as well as "spring.portal.main.domain" property.</em></strong></p>
</blockquote>
<p>In folder <code>org.etsi.osl.main/compose/</code> edit the file <code>docker-compose.yaml</code></p>
@@ -1758,12 +1729,7 @@ cd org.etsi.osl.tmf.web/src/assets/config
</code></pre>
<blockquote>
<p><strong><em>IMPORTANT NOTE:</em></strong>
If you want to apply changes to the JSON configuration files without the need to rebuild the
application, you have to apply the changes at the <code>org.etsi.osl.tmf.web/dist/io-openslice-portal-web/assets/config</code>
directory. Although, it is <u>mandatory</u> to also apply these changes to the <code>org.etsi.osl.tmf.web/src/assets/config</code>
for <u>persistancy</u>, as after any future rebuild of OpenSlice the <code>/dist</code> directory is being overwritten along with its
contents. The OpenSlice team strongly recommends to always apply your changes to the TMF web UI configuration files
at <code>org.etsi.osl.tmf.web/src/assets/config</code> and rebuild the application.</p>
If you want to apply changes to the JSON configuration files without the need to rebuild the application, you have to apply the changes at the <code>org.etsi.osl.tmf.web/dist/io-openslice-portal-web/assets/config</code> directory. Although, it is <u>mandatory</u> to also apply these changes to the <code>org.etsi.osl.tmf.web/src/assets/config</code> for <u>persistancy</u>, as after any future rebuild of OpenSlice the <code>/dist</code> directory is being overwritten along with its contents. The OpenSlice team strongly recommends to always apply your changes to the TMF web UI configuration files at <code>org.etsi.osl.tmf.web/src/assets/config</code> and rebuild the application.</p>
</blockquote>
<h2id="deploy-openslice-via-docker-compose">Deploy OpenSlice via Docker Compose</h2>
<p>After configuring the services, and editing the docker compose file accordingly, the docker compose instantiation command can be performed.</p>
@@ -1792,10 +1758,12 @@ cd org.etsi.osl.main/compose/
</li>
<li>
<p>Login with the credentials from section <ahref="#Configure-keycloak-container">Configure keycloak container</a>. Default values are:</p>
</li>
<ul>
<li>user: admin and </li>
<li>password: KEYCLOAK_PASSWORD</li>
</ul>
</li>
</ul>
<blockquote>
<p>if you are running in HTTP you will get a message: HTTPS required.</p>
</blockquote>
@@ -1841,21 +1809,22 @@ cd org.etsi.osl.main/compose/
</li>
</ul>
<p>2 - Replace http://localhost/auth/ with http://keycloak:8080/auth/ in your Keycloak config for AngularJS and Angular (see examples below).</p>
<p>Explanation:</p>
<pre><code>Nginx uses the http://keycloak:8080 URL, which is accessible via the internal docker system's network.
<blockquote>
<p>Explanation</p>
</blockquote>
<p>Nginx uses the http://keycloak:8080 URL, which is accessible via the internal docker system's network.
The Front-end (TS/Angular) shall also use the http://keycloak:8080.
This way, you will not get the invalid token error, as the API is acquiring the token from http://keycloak:8080 (internally) and the Front-end is getting verified by an issuer at the same URL, as well.
</code></pre>
This way, you will not get the invalid token error, as the API is acquiring the token from http://keycloak:8080 (internally) and the Front-end is getting verified by an issuer at the same URL, as well.</p>
<ul>
<li>For the Angular configuration (TMF portal UI), navigate to org.etsi.osl.tmf.web/src/assets/config and edit config.prod.json
<code>bash
# Starting from the root project directory
cd org.etsi.osl.tmf.web/src/assets/config</code>
<code>bash
nano config.prod.json</code></li>
<li>For the Angular configuration (TMF portal UI), navigate to org.etsi.osl.tmf.web/src/assets/config and edit config.prod.json</li>
</ul>
<p>After editing it should look like the example bellow:
```yaml
<p><code>bash
# Starting from the root project directory
cd org.etsi.osl.tmf.web/src/assets/config</code></p>
<p><code>bash
nano config.prod.json</code></p>
<p>After editing it should look like the example bellow:</p>
<p>```yaml
{ <br/>
"TITLE": "OpenSlice by ETSI",
"PORTALVERSION":"2023-Q3 1.2.0-SNAPSHOT",
@@ -1893,15 +1862,15 @@ This way, you will not get the invalid token error, as the API is acquiring the
<p>If you want the changes to take place immediately without rebuilding the project, then repeat the process for org.etsi.osl.tmf.web/dist/org.etsi.osl.tmf.web/assets/config/config.prod.json</p>
</blockquote>
<ul>
<li>For the AngularJS configuration (NVF portal UI), navigate to org.etsi.osl.portal.web/src/js and edit config.js
<code>bash
# Starting from the root project directory
cd org.etsi.osl.portal.web/src/js</code>
<code>bash
nano config.js</code>
after editing it should look like the example bellow:</li>
<li>For the AngularJS configuration (NVF portal UI), navigate to org.etsi.osl.portal.web/src/js and edit config.js</li>
</ul>
<p>```js
<p><code>bash
# Starting from the root project directory
cd org.etsi.osl.portal.web/src/js</code></p>
<p><code>bash
nano config.js</code></p>
<p>after editing it should look like the example bellow:</p>
<p>```
var appConfig = angular.module('portalwebapp.config',[]);</p>