ext_typoscript_setup.txt 2.86 KB
Newer Older
1
2
3
4
######################
#### DEPENDENCIES ####
######################
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:femanager/Configuration/TypoScript/Main/setup.txt">
5
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:userprofile/Configuration/TypoScript/setup.txt">
6
<INCLUDE_TYPOSCRIPT: source="FILE:EXT:gitlab_api/Configuration/TypoScript/setup.ts">
7
8
9
10
11

################
#### HELPER ####
################
<INCLUDE_TYPOSCRIPT: source="DIR:EXT:t3omy/Configuration/TypoScript/">
12
13
14
15
16
17
18
19
20
21
22
23
24


#################
#### MAPPING ####
#################
config.tx_extbase {
   persistence {
      classes {
         T3o\T3omy\Domain\Model\MyProfile{
            mapping {
               tableName = fe_users
            }
         }
25
26
27
28
29
         T3o\T3omy\Domain\Model\OldUser{
            mapping {
               tableName = old_users
            }
         }
30
31
32
      }
   }
}
33

34
[applicationContext = Production]
35
config.additionalHeaders {
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
  10.header = X-Powered-By: nothing
  20.header = Content-Security-Policy: default-src 'self' *.typo3.org; script-src 'unsafe-inline' typo3.azureedge.net *.typo3.org; font-src 'self' *.typo3.org fonts.googleapis.com fonts.gstatic.com; style-src 'self' 'unsafe-inline' fonts.googleapis.com; img-src 'self' data: *.typo3.org www.gravatar.com avatars.slack-edge.com
  30.header = X-Content-Security-Policy: default-src 'self' *.typo3.org; script-src 'unsafe-inline' typo3.azureedge.net *.typo3.org; font-src 'self' *.typo3.org fonts.googleapis.com fonts.gstatic.com; style-src 'self' 'unsafe-inline' fonts.googleapis.com; img-src 'self' data: *.typo3.org www.gravatar.com avatars.slack-edge.com
  40.header = X-Webkit-CSP: default-src 'self' *.typo3.org; script-src 'unsafe-inline' typo3.azureedge.net *.typo3.org; font-src 'self' *.typo3.org fonts.googleapis.com fonts.gstatic.com; style-src 'self' 'unsafe-inline' fonts.googleapis.com; img-src 'self' data: *.typo3.org www.gravatar.com avatars.slack-edge.com
}


#### Set piwik tracking code for my.typo3.org
page {
  headerData {
    1501157682 = TEXT
    1501157682.value (
         <!-- Piwik -->
         <script type="text/javascript">
          var _paq = _paq || [];
          /* tracker methods like "setCustomDimension" should be called before "trackPageView" */
          _paq.push(['trackPageView']);
          _paq.push(['enableLinkTracking']);
          (function() {
            var u="//piwik.typo3.org/";
            _paq.push(['setTrackerUrl', u+'piwik.php']);
            _paq.push(['setSiteId', '37']);
            _paq.push(['setVisitorCookieTimeout', '2592000']);
            _paq.push(['setSessionCookieTimeout', '0']);
            _paq.push(['setDoNotTrack', true]);
            var d=document, g=d.createElement('script'), s=d.getElementsByTagName('script')[0];
            g.type='text/javascript'; g.async=true; g.defer=true; g.src=u+'piwik.js'; s.parentNode.insertBefore(g,s);
          })();
         </script>
         <!-- End Piwik Code -->
    )
  }
68
}
69
[end]