瀏覽代碼

Merge branch 'develop' into staging

* develop:
  add site configuration for rest api and add additional configuration to provide env vars
  remove trash
ksieren 2 年之前
父節點
當前提交
4007ff6d9e
共有 4 個文件被更改,包括 33 次插入8 次删除
  1. 1 8
      Dockerfile
  2. 2 0
      config/sites/abi2021/config.yaml
  3. 19 0
      config/sites/restapi/config.yaml
  4. 11 0
      public/typo3conf/AdditionalConfiguration.php

+ 1 - 8
Dockerfile

@@ -3,15 +3,8 @@ ENV TZ=Europe/Berlin
 
 WORKDIR /var/www/html
 USER root
-#RUN usermod -a -G ssl-cert www-data
-#RUN chown -R root:ssl-cert /etc/ssl \
-#    && chmod -R 640 /etc/ssl/private \
-#    && chmod 640 /etc/ssl/private/apache-selfsigned.key
 COPY . .
-#RUN chown -R www-data:www-data /var/www
-#USER www-data
 ONBUILD COPY composer.json ./
 RUN composer install --no-interaction
 RUN chown -R nobody:nobody /var/www
-USER nobody
-
+USER nobody

+ 2 - 0
config/sites/abi2021/config.yaml

@@ -15,3 +15,5 @@ languages:
     websiteTitle: ''
 rootPageId: 6
 websiteTitle: 'abi» dein weg in studium und beruf'
+imports:
+  - { resource: "EXT:nnrestapi/Configuration/Yaml/default.yaml" }

+ 19 - 0
config/sites/restapi/config.yaml

@@ -0,0 +1,19 @@
+base: 'https://abitypo3cms.ddev.site/'
+languages:
+  -
+    title: English
+    enabled: true
+    base: 'https://abitypo3cms.ddev.site/'
+    typo3Language: default
+    locale: en_US.UTF-8
+    iso-639-1: en
+    websiteTitle: ''
+    navigationTitle: ''
+    hreflang: ''
+    direction: ''
+    flag: global
+    languageId: 0
+rootPageId: 13673
+websiteTitle: 'abi rest api'
+imports:
+  - { resource: "EXT:nnrestapi/Configuration/Yaml/default.yaml" }

+ 11 - 0
public/typo3conf/AdditionalConfiguration.php

@@ -0,0 +1,11 @@
+<?php
+
+use Dotenv\Dotenv;
+
+$dotenv = Dotenv::createImmutable(__DIR__);
+$dotenv->safeLoad();
+
+class AdditionalConfiguration
+{
+
+}