generator-razor 14.0.18 → 14.0.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/app/index.js
CHANGED
|
@@ -182,7 +182,7 @@ export default class extends Generator {
|
|
|
182
182
|
when: answers => answers.Transport === 'smtp',
|
|
183
183
|
type: 'input',
|
|
184
184
|
name: 'SmtpEmail',
|
|
185
|
-
message: 'Sender
|
|
185
|
+
message: 'Sender Email?',
|
|
186
186
|
default: '',
|
|
187
187
|
store: true
|
|
188
188
|
}, {
|
|
@@ -225,7 +225,7 @@ export default class extends Generator {
|
|
|
225
225
|
}, {
|
|
226
226
|
type: 'input',
|
|
227
227
|
name: 'Email',
|
|
228
|
-
message: 'Author
|
|
228
|
+
message: 'Author Email',
|
|
229
229
|
default: 'john@doe.com',
|
|
230
230
|
store: true
|
|
231
231
|
}, {
|
|
@@ -1,4 +1,37 @@
|
|
|
1
|
-
#
|
|
1
|
+
# This file applies Content-Security-Policy (CSP) HTTP headers
|
|
2
|
+
# to directories containing (user uploaded) resources like
|
|
3
|
+
# /fileadmin/ or /uploads/
|
|
4
|
+
|
|
2
5
|
<IfModule mod_headers.c>
|
|
3
|
-
|
|
6
|
+
# matching requested *.pdf files only (strict rules block Safari showing PDF documents)
|
|
7
|
+
<FilesMatch "\.pdf$">
|
|
8
|
+
Header set Content-Security-Policy "default-src 'self' 'unsafe-inline'; script-src 'none'; object-src 'self'; plugin-types application/pdf;"
|
|
9
|
+
</FilesMatch>
|
|
10
|
+
# matching requested *.svg files only (allows using inline styles when serving SVG files)
|
|
11
|
+
<FilesMatch "\.svg">
|
|
12
|
+
Header set Content-Security-Policy "default-src 'self'; script-src 'none'; style-src 'unsafe-inline'; object-src 'none';"
|
|
13
|
+
</FilesMatch>
|
|
14
|
+
# matching anything else, using negative lookbehind pattern
|
|
15
|
+
<FilesMatch "(?<!\.(?:pdf|svg))$">
|
|
16
|
+
Header set Content-Security-Policy "default-src 'self'; script-src 'none'; style-src 'none'; object-src 'none';"
|
|
17
|
+
</FilesMatch>
|
|
18
|
+
|
|
19
|
+
# =================================================================
|
|
20
|
+
# Variations to send CSP header only when it has not be set before.
|
|
21
|
+
# Adjust all `Header set` instructions above
|
|
22
|
+
# Header set Content-Security-Policy "<directives>"
|
|
23
|
+
# with substitutes shown below
|
|
24
|
+
#
|
|
25
|
+
# -----------------------------------------------------------------
|
|
26
|
+
# a) for Apache 2.4 (having `setifempty`)
|
|
27
|
+
# -----------------------------------------------------------------
|
|
28
|
+
# Header setifempty Content-Security-Policy "<directives>"
|
|
29
|
+
#
|
|
30
|
+
# -----------------------------------------------------------------
|
|
31
|
+
# b) for Apache 2.2 (using fallbacks)
|
|
32
|
+
# -----------------------------------------------------------------
|
|
33
|
+
# Header append Content-Security-Policy ""
|
|
34
|
+
# Header edit Content-Security-Policy "^$" "<directives>"
|
|
35
|
+
#
|
|
36
|
+
# =================================================================
|
|
4
37
|
</IfModule>
|
|
@@ -1,4 +1,37 @@
|
|
|
1
|
-
#
|
|
1
|
+
# This file applies Content-Security-Policy (CSP) HTTP headers
|
|
2
|
+
# to directories containing (user uploaded) resources like
|
|
3
|
+
# /fileadmin/ or /uploads/
|
|
4
|
+
|
|
2
5
|
<IfModule mod_headers.c>
|
|
3
|
-
|
|
6
|
+
# matching requested *.pdf files only (strict rules block Safari showing PDF documents)
|
|
7
|
+
<FilesMatch "\.pdf$">
|
|
8
|
+
Header set Content-Security-Policy "default-src 'self' 'unsafe-inline'; script-src 'none'; object-src 'self'; plugin-types application/pdf;"
|
|
9
|
+
</FilesMatch>
|
|
10
|
+
# matching requested *.svg files only (allows using inline styles when serving SVG files)
|
|
11
|
+
<FilesMatch "\.svg">
|
|
12
|
+
Header set Content-Security-Policy "default-src 'self'; script-src 'none'; style-src 'unsafe-inline'; object-src 'none'; sandbox;"
|
|
13
|
+
</FilesMatch>
|
|
14
|
+
# matching anything else, using negative lookbehind pattern
|
|
15
|
+
<FilesMatch "(?<!\.(?:pdf|svg))$">
|
|
16
|
+
Header set Content-Security-Policy "default-src 'self'; script-src 'none'; style-src 'none'; object-src 'none'; sandbox;"
|
|
17
|
+
</FilesMatch>
|
|
18
|
+
|
|
19
|
+
# =================================================================
|
|
20
|
+
# Variations to send CSP header only when it has not be set before.
|
|
21
|
+
# Adjust all `Header set` instructions above
|
|
22
|
+
# Header set Content-Security-Policy "<directives>"
|
|
23
|
+
# with substitutes shown below
|
|
24
|
+
#
|
|
25
|
+
# -----------------------------------------------------------------
|
|
26
|
+
# a) for Apache 2.4 (having `setifempty`)
|
|
27
|
+
# -----------------------------------------------------------------
|
|
28
|
+
# Header setifempty Content-Security-Policy "<directives>"
|
|
29
|
+
#
|
|
30
|
+
# -----------------------------------------------------------------
|
|
31
|
+
# b) for Apache 2.2 (using fallbacks)
|
|
32
|
+
# -----------------------------------------------------------------
|
|
33
|
+
# Header append Content-Security-Policy ""
|
|
34
|
+
# Header edit Content-Security-Policy "^$" "<directives>"
|
|
35
|
+
#
|
|
36
|
+
# =================================================================
|
|
4
37
|
</IfModule>
|
|
@@ -1,4 +1,37 @@
|
|
|
1
|
-
#
|
|
1
|
+
# This file applies Content-Security-Policy (CSP) HTTP headers
|
|
2
|
+
# to directories containing (user uploaded) resources like
|
|
3
|
+
# /fileadmin/ or /uploads/
|
|
4
|
+
|
|
2
5
|
<IfModule mod_headers.c>
|
|
3
|
-
|
|
6
|
+
# matching requested *.pdf files only (strict rules block Safari showing PDF documents)
|
|
7
|
+
<FilesMatch "\.pdf$">
|
|
8
|
+
Header set Content-Security-Policy "default-src 'self' 'unsafe-inline'; script-src 'none'; object-src 'self'; plugin-types application/pdf;"
|
|
9
|
+
</FilesMatch>
|
|
10
|
+
# matching requested *.svg files only (allows using inline styles when serving SVG files)
|
|
11
|
+
<FilesMatch "\.svg">
|
|
12
|
+
Header set Content-Security-Policy "default-src 'self'; script-src 'none'; style-src 'unsafe-inline'; object-src 'none'; sandbox;"
|
|
13
|
+
</FilesMatch>
|
|
14
|
+
# matching anything else, using negative lookbehind pattern
|
|
15
|
+
<FilesMatch "(?<!\.(?:pdf|svg))$">
|
|
16
|
+
Header set Content-Security-Policy "default-src 'self'; script-src 'none'; style-src 'none'; object-src 'none'; sandbox;"
|
|
17
|
+
</FilesMatch>
|
|
18
|
+
|
|
19
|
+
# =================================================================
|
|
20
|
+
# Variations to send CSP header only when it has not be set before.
|
|
21
|
+
# Adjust all `Header set` instructions above
|
|
22
|
+
# Header set Content-Security-Policy "<directives>"
|
|
23
|
+
# with substitutes shown below
|
|
24
|
+
#
|
|
25
|
+
# -----------------------------------------------------------------
|
|
26
|
+
# a) for Apache 2.4 (having `setifempty`)
|
|
27
|
+
# -----------------------------------------------------------------
|
|
28
|
+
# Header setifempty Content-Security-Policy "<directives>"
|
|
29
|
+
#
|
|
30
|
+
# -----------------------------------------------------------------
|
|
31
|
+
# b) for Apache 2.2 (using fallbacks)
|
|
32
|
+
# -----------------------------------------------------------------
|
|
33
|
+
# Header append Content-Security-Policy ""
|
|
34
|
+
# Header edit Content-Security-Policy "^$" "<directives>"
|
|
35
|
+
#
|
|
36
|
+
# =================================================================
|
|
4
37
|
</IfModule>
|
|
@@ -1,4 +1,37 @@
|
|
|
1
|
-
#
|
|
1
|
+
# This file applies Content-Security-Policy (CSP) HTTP headers
|
|
2
|
+
# to directories containing (user uploaded) resources like
|
|
3
|
+
# /fileadmin/ or /uploads/
|
|
4
|
+
|
|
2
5
|
<IfModule mod_headers.c>
|
|
3
|
-
|
|
6
|
+
# matching requested *.pdf files only (strict rules block Safari showing PDF documents)
|
|
7
|
+
<FilesMatch "\.pdf$">
|
|
8
|
+
Header set Content-Security-Policy "default-src 'self' 'unsafe-inline'; script-src 'none'; object-src 'self'; plugin-types application/pdf;"
|
|
9
|
+
</FilesMatch>
|
|
10
|
+
# matching requested *.svg files only (allows using inline styles when serving SVG files)
|
|
11
|
+
<FilesMatch "\.svg">
|
|
12
|
+
Header set Content-Security-Policy "default-src 'self'; script-src 'none'; style-src 'unsafe-inline'; object-src 'none'; sandbox;"
|
|
13
|
+
</FilesMatch>
|
|
14
|
+
# matching anything else, using negative lookbehind pattern
|
|
15
|
+
<FilesMatch "(?<!\.(?:pdf|svg))$">
|
|
16
|
+
Header set Content-Security-Policy "default-src 'self'; script-src 'none'; style-src 'none'; object-src 'none'; sandbox;"
|
|
17
|
+
</FilesMatch>
|
|
18
|
+
|
|
19
|
+
# =================================================================
|
|
20
|
+
# Variations to send CSP header only when it has not be set before.
|
|
21
|
+
# Adjust all `Header set` instructions above
|
|
22
|
+
# Header set Content-Security-Policy "<directives>"
|
|
23
|
+
# with substitutes shown below
|
|
24
|
+
#
|
|
25
|
+
# -----------------------------------------------------------------
|
|
26
|
+
# a) for Apache 2.4 (having `setifempty`)
|
|
27
|
+
# -----------------------------------------------------------------
|
|
28
|
+
# Header setifempty Content-Security-Policy "<directives>"
|
|
29
|
+
#
|
|
30
|
+
# -----------------------------------------------------------------
|
|
31
|
+
# b) for Apache 2.2 (using fallbacks)
|
|
32
|
+
# -----------------------------------------------------------------
|
|
33
|
+
# Header append Content-Security-Policy ""
|
|
34
|
+
# Header edit Content-Security-Policy "^$" "<directives>"
|
|
35
|
+
#
|
|
36
|
+
# =================================================================
|
|
4
37
|
</IfModule>
|