@rxap/plugin-angular 16.1.0-dev.1 → 16.1.0-dev.10
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/CHANGELOG.md +61 -0
- package/LICENSE.md +621 -0
- package/README.md +67 -1
- package/executors.json +14 -0
- package/generators.json +27 -0
- package/package.json +29 -15
- package/src/executors/check-ng-package/executor.d.ts +5 -0
- package/src/executors/check-ng-package/executor.js +24 -0
- package/src/executors/check-ng-package/executor.js.map +1 -0
- package/src/executors/check-ng-package/schema.d.ts +1 -0
- package/src/executors/check-ng-package/schema.json +9 -0
- package/src/executors/tailwind/executor.d.ts +5 -0
- package/src/executors/tailwind/executor.js +23 -0
- package/src/executors/tailwind/executor.js.map +1 -0
- package/src/executors/tailwind/schema.d.ts +6 -0
- package/src/executors/tailwind/schema.json +26 -0
- package/src/generators/fix-schematic/generator.js +56 -64
- package/src/generators/fix-schematic/generator.js.map +1 -1
- package/src/generators/fix-schematic/index.d.ts +2 -0
- package/src/generators/fix-schematic/index.js +5 -0
- package/src/generators/fix-schematic/index.js.map +1 -0
- package/src/generators/init/generator.js +23 -30
- package/src/generators/init/generator.js.map +1 -1
- package/src/generators/init/index.d.ts +2 -0
- package/src/generators/init/index.js +5 -0
- package/src/generators/init/index.js.map +1 -0
- package/src/generators/init-application/files/shared/angular.Dockerfile +3 -0
- package/src/generators/init-application/files/shared/configuration/.gitkeep +0 -0
- package/src/generators/init-application/generator.js +73 -78
- package/src/generators/init-application/generator.js.map +1 -1
- package/src/generators/init-application/index.d.ts +2 -0
- package/src/generators/init-application/index.js +5 -0
- package/src/generators/init-application/index.js.map +1 -0
- package/src/generators/init-library/generator.js +101 -55
- package/src/generators/init-library/generator.js.map +1 -1
- package/src/generators/init-library/index.d.ts +2 -0
- package/src/generators/init-library/index.js +5 -0
- package/src/generators/init-library/index.js.map +1 -0
- package/src/generators/schematic/generator.js +67 -77
- package/src/generators/schematic/generator.js.map +1 -1
- package/src/generators/schematic/index.d.ts +2 -0
- package/src/generators/schematic/index.js +5 -0
- package/src/generators/schematic/index.js.map +1 -0
- package/src/index.js +3 -9
- package/src/index.js.map +1 -1
- package/src/lib/skip-project.js +5 -10
- package/src/lib/skip-project.js.map +1 -1
- package/src/generators/init-application/files/shared/assets/Dockerfile +0 -5
- package/src/generators/init-application/files/shared/assets/nginx.conf +0 -74
|
@@ -1,13 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
exports.schematicGenerator = exports.hasSchematic = exports.createCollectionJson = void 0;
|
|
4
|
-
const tslib_1 = require("tslib");
|
|
5
|
-
const devkit_1 = require("@nx/devkit");
|
|
6
|
-
const path = require("path");
|
|
1
|
+
import { formatFiles, generateFiles, getWorkspaceLayout, joinPathFragments, names, readJson, readProjectConfiguration, updateJson, updateProjectConfiguration, writeJson, } from '@nx/devkit';
|
|
2
|
+
import * as path from 'path';
|
|
7
3
|
function normalizeOptions(host, options) {
|
|
8
|
-
const { npmScope } =
|
|
9
|
-
const { root: projectRoot, sourceRoot: projectSourceRoot, } =
|
|
10
|
-
const npmPackageName =
|
|
4
|
+
const { npmScope } = getWorkspaceLayout(host);
|
|
5
|
+
const { root: projectRoot, sourceRoot: projectSourceRoot, } = readProjectConfiguration(host, options.project);
|
|
6
|
+
const npmPackageName = readJson(host, path.join(projectRoot, 'package.json')).name;
|
|
11
7
|
let description;
|
|
12
8
|
if (options.description) {
|
|
13
9
|
description = options.description;
|
|
@@ -15,78 +11,75 @@ function normalizeOptions(host, options) {
|
|
|
15
11
|
else {
|
|
16
12
|
description = `${options.name} schematic`;
|
|
17
13
|
}
|
|
18
|
-
return
|
|
14
|
+
return {
|
|
15
|
+
...options, ...names(options.name),
|
|
16
|
+
description,
|
|
19
17
|
projectRoot,
|
|
20
18
|
projectSourceRoot,
|
|
21
19
|
npmScope,
|
|
22
|
-
npmPackageName
|
|
20
|
+
npmPackageName,
|
|
21
|
+
};
|
|
23
22
|
}
|
|
24
23
|
function addFiles(host, options) {
|
|
25
|
-
|
|
24
|
+
generateFiles(host, path.join(__dirname, './files/schematic'), `${options.projectSourceRoot}/schematics`, {
|
|
25
|
+
...options,
|
|
26
|
+
schematicFnName: `${options.propertyName}Schematic`,
|
|
27
|
+
schemaInterfaceName: `${options.className}SchematicSchema`,
|
|
28
|
+
});
|
|
26
29
|
}
|
|
27
|
-
function createCollectionJson(host, projectRoot) {
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
}
|
|
34
|
-
(0, devkit_1.writeJson)(host, (0, devkit_1.joinPathFragments)(projectRoot, 'collection.json'), {
|
|
35
|
-
schematics: {},
|
|
36
|
-
});
|
|
30
|
+
export async function createCollectionJson(host, projectRoot) {
|
|
31
|
+
updateJson(host, joinPathFragments(projectRoot, 'package.json'), (json) => {
|
|
32
|
+
json.schematics ??= './collection.json';
|
|
33
|
+
return json;
|
|
34
|
+
});
|
|
35
|
+
writeJson(host, joinPathFragments(projectRoot, 'collection.json'), {
|
|
36
|
+
schematics: {},
|
|
37
37
|
});
|
|
38
38
|
}
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
schematics
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
json.schematics = schematics;
|
|
60
|
-
return json;
|
|
61
|
-
});
|
|
39
|
+
async function updateCollectionJson(host, options) {
|
|
40
|
+
const packageJson = readJson(host, joinPathFragments(options.projectRoot, 'package.json'));
|
|
41
|
+
const packageJsonSchematics = packageJson.schematics;
|
|
42
|
+
let schematicsPath = packageJsonSchematics ? joinPathFragments(options.projectRoot, packageJsonSchematics) : null;
|
|
43
|
+
if (!schematicsPath) {
|
|
44
|
+
schematicsPath = joinPathFragments(options.projectRoot, 'collection.json');
|
|
45
|
+
}
|
|
46
|
+
if (!host.exists(schematicsPath)) {
|
|
47
|
+
await createCollectionJson(host, options.projectRoot);
|
|
48
|
+
}
|
|
49
|
+
updateJson(host, schematicsPath, (json) => {
|
|
50
|
+
let schematics = json.schematics;
|
|
51
|
+
schematics ??= {};
|
|
52
|
+
schematics[options.name] = {
|
|
53
|
+
factory: `./src/schematics/${options.fileName}/index`,
|
|
54
|
+
schema: `./src/schematics/${options.fileName}/schema.json`,
|
|
55
|
+
description: options.description,
|
|
56
|
+
};
|
|
57
|
+
json.schematics = schematics;
|
|
58
|
+
return json;
|
|
62
59
|
});
|
|
63
60
|
}
|
|
64
|
-
function hasSchematic(tree, projectName, schematicName) {
|
|
65
|
-
|
|
66
|
-
const
|
|
67
|
-
const packageJson = (0, devkit_1.readJson)(tree, (0, devkit_1.joinPathFragments)(project.root, 'package.json'));
|
|
61
|
+
export function hasSchematic(tree, projectName, schematicName) {
|
|
62
|
+
const project = readProjectConfiguration(tree, projectName);
|
|
63
|
+
const packageJson = readJson(tree, joinPathFragments(project.root, 'package.json'));
|
|
68
64
|
if (!packageJson.schematics) {
|
|
69
65
|
return false;
|
|
70
66
|
}
|
|
71
|
-
const schematicsPath =
|
|
72
|
-
const collectionJson =
|
|
73
|
-
return (
|
|
67
|
+
const schematicsPath = joinPathFragments(project.root, packageJson.schematics);
|
|
68
|
+
const collectionJson = readJson(tree, schematicsPath);
|
|
69
|
+
return (collectionJson.schematics?.[schematicName] !== undefined);
|
|
74
70
|
}
|
|
75
|
-
exports.hasSchematic = hasSchematic;
|
|
76
71
|
function coerceBuildTarget(tree, { projectRoot, project, }) {
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
(_a = projectConfiguration.targets) !== null && _a !== void 0 ? _a : (projectConfiguration.targets = {});
|
|
81
|
-
(_b = (_f = projectConfiguration.targets)['build']) !== null && _b !== void 0 ? _b : (_f['build'] = {});
|
|
72
|
+
const projectConfiguration = readProjectConfiguration(tree, project);
|
|
73
|
+
projectConfiguration.targets ??= {};
|
|
74
|
+
projectConfiguration.targets['build'] ??= {};
|
|
82
75
|
const buildTarget = projectConfiguration.targets['build'];
|
|
83
76
|
buildTarget.executor = '@nx/js:tsc';
|
|
84
|
-
|
|
85
|
-
|
|
77
|
+
buildTarget.outputs ??= ['{options.outputPath}'];
|
|
78
|
+
buildTarget.options ??= {};
|
|
86
79
|
buildTarget.options.outputPath = `dist/${projectRoot}`;
|
|
87
80
|
buildTarget.options.main = `${projectRoot}/src/index.ts`;
|
|
88
81
|
buildTarget.options.tsConfig = `${projectRoot}/tsconfig.lib.json`;
|
|
89
|
-
|
|
82
|
+
buildTarget.options.assets ??= [];
|
|
90
83
|
const assets = [
|
|
91
84
|
`${projectRoot}/*.md`, {
|
|
92
85
|
'input': `./${projectRoot}/src`,
|
|
@@ -116,22 +109,19 @@ function coerceBuildTarget(tree, { projectRoot, project, }) {
|
|
|
116
109
|
buildTarget.options.assets.push(asset);
|
|
117
110
|
}
|
|
118
111
|
}
|
|
119
|
-
|
|
112
|
+
updateProjectConfiguration(tree, project, projectConfiguration);
|
|
120
113
|
}
|
|
121
|
-
function schematicGenerator(host, _options) {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
coerceBuildTarget(host, options);
|
|
133
|
-
});
|
|
114
|
+
export async function schematicGenerator(host, _options) {
|
|
115
|
+
const options = normalizeOptions(host, _options);
|
|
116
|
+
if (hasSchematic(host, options.project, options.name)) {
|
|
117
|
+
throw new Error(`Generator ${options.name} already exists.`);
|
|
118
|
+
}
|
|
119
|
+
addFiles(host, options);
|
|
120
|
+
await updateCollectionJson(host, options);
|
|
121
|
+
if (!options.skipFormat) {
|
|
122
|
+
await formatFiles(host);
|
|
123
|
+
}
|
|
124
|
+
coerceBuildTarget(host, options);
|
|
134
125
|
}
|
|
135
|
-
|
|
136
|
-
exports.default = schematicGenerator;
|
|
126
|
+
export default schematicGenerator;
|
|
137
127
|
//# sourceMappingURL=generator.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/generators/schematic/generator.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"generator.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/generators/schematic/generator.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,WAAW,EACX,aAAa,EAEb,kBAAkB,EAClB,iBAAiB,EACjB,KAAK,EACL,QAAQ,EACR,wBAAwB,EAExB,UAAU,EACV,0BAA0B,EAC1B,SAAS,GACV,MAAM,YAAY,CAAC;AAEpB,OAAO,KAAK,IAAI,MAAM,MAAM,CAAC;AAY7B,SAAS,gBAAgB,CAAC,IAAU,EAAE,OAAiC;IACrE,MAAM,EAAE,QAAQ,EAAE,GAAG,kBAAkB,CAAC,IAAI,CAAC,CAAC;IAE9C,MAAM,EACJ,IAAI,EAAE,WAAW,EACjB,UAAU,EAAE,iBAAiB,GAC9B,GAAG,wBAAwB,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC;IAEpD,MAAM,cAAc,GAAG,QAAQ,CAAmB,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,WAAW,EAAE,cAAc,CAAC,CAAC,CAAC,IAAI,CAAC;IAErG,IAAI,WAAmB,CAAC;IACxB,IAAI,OAAO,CAAC,WAAW,EAAE;QACvB,WAAW,GAAG,OAAO,CAAC,WAAW,CAAC;KACnC;SAAM;QACL,WAAW,GAAG,GAAI,OAAO,CAAC,IAAK,YAAY,CAAC;KAC7C;IAED,OAAO;QACL,GAAG,OAAO,EAAE,GAAG,KAAK,CAAC,OAAO,CAAC,IAAI,CAAC;QAClC,WAAW;QACX,WAAW;QACX,iBAAiB;QACjB,QAAQ;QACR,cAAc;KACf,CAAC;A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AC,CAAC,KAAK,IAAI,KAAK,CAAC,IAAI,KAAK,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,MAAM,KAAK,CAAC,CAAC,MAAM,CAAC;iBACtF;aACF;QACH,CAAC,CAAC,EAAE;YACF,WAAW,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC;SACxC;KACF;IAED,0BAA0B,CAAC,IAAI,EAAE,OAAO,EAAE,oBAAoB,CAAC,CAAC;AAClE,CAAC;AAED,MAAM,CAAC,KAAK,UAAU,kBAAkB,CAAC,IAAU,EAAE,QAAkC;IACrF,MAAM,OAAO,GAAG,gBAAgB,CAAC,IAAI,EAAE,QAAQ,CAAC,CAAC;IACjD,IAAI,YAAY,CAAC,IAAI,EAAE,OAAO,CAAC,OAAO,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE;QACrD,MAAM,IAAI,KAAK,CAAC,aAAc,OAAO,CAAC,IAAK,kBAAkB,CAAC,CAAC;KAChE;IAED,QAAQ,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAExB,MAAM,oBAAoB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;IAE1C,IAAI,CAAC,OAAO,CAAC,UAAU,EAAE;QACvB,MAAM,WAAW,CAAC,IAAI,CAAC,CAAC;KACzB;IAED,iBAAiB,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;AAEnC,CAAC;AAED,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../../packages/plugin/angular/src/generators/schematic/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD,OAAO,SAAS,MAAM,aAAa,CAAC;AAEpC,MAAM,SAAS,GAAG,kBAAkB,CAAC,SAAS,CAAC,CAAC;AAChD,eAAe,SAAS,CAAC"}
|
package/src/index.js
CHANGED
|
@@ -1,10 +1,4 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
var generator_1 = require("./generators/init/generator");
|
|
5
|
-
Object.defineProperty(exports, "AngularInitGenerator", { enumerable: true, get: function () { return generator_1.initGenerator; } });
|
|
6
|
-
var generator_2 = require("./generators/init-library/generator");
|
|
7
|
-
Object.defineProperty(exports, "AngularInitLibraryGenerator", { enumerable: true, get: function () { return generator_2.initLibraryGenerator; } });
|
|
8
|
-
var generator_3 = require("./generators/init-application/generator");
|
|
9
|
-
Object.defineProperty(exports, "AngularInitApplicationGenerator", { enumerable: true, get: function () { return generator_3.initApplicationGenerator; } });
|
|
1
|
+
export { initGenerator as AngularInitGenerator } from './generators/init/generator';
|
|
2
|
+
export { initLibraryGenerator as AngularInitLibraryGenerator } from './generators/init-library/generator';
|
|
3
|
+
export { initApplicationGenerator as AngularInitApplicationGenerator } from './generators/init-application/generator';
|
|
10
4
|
//# sourceMappingURL=index.js.map
|
package/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/plugin/angular/src/index.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../packages/plugin/angular/src/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACpF,OAAO,EAAE,oBAAoB,IAAI,2BAA2B,EAAE,MAAM,qCAAqC,CAAC;AAC1G,OAAO,EAAE,wBAAwB,IAAI,+BAA+B,EAAE,MAAM,yCAAyC,CAAC"}
|
package/src/lib/skip-project.js
CHANGED
|
@@ -1,19 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const generator_utilities_1 = require("@rxap/generator-utilities");
|
|
5
|
-
function SkipNonAngularProject(tree, options, project, projectName) {
|
|
6
|
-
var _a, _b, _c, _d;
|
|
7
|
-
if ((0, generator_utilities_1.SkipProject)(tree, options, project, projectName)) {
|
|
1
|
+
import { SkipProject } from '@rxap/generator-utilities';
|
|
2
|
+
export function SkipNonAngularProject(tree, options, project, projectName) {
|
|
3
|
+
if (SkipProject(tree, options, project, projectName)) {
|
|
8
4
|
return true;
|
|
9
5
|
}
|
|
10
|
-
if (!
|
|
6
|
+
if (!project.tags?.includes('angular') && !project.tags?.includes('ngx')) {
|
|
11
7
|
return true;
|
|
12
8
|
}
|
|
13
|
-
if (
|
|
9
|
+
if (project.tags?.includes('plugin') || project.tags?.includes('schematic')) {
|
|
14
10
|
return true;
|
|
15
11
|
}
|
|
16
12
|
return false;
|
|
17
13
|
}
|
|
18
|
-
exports.SkipNonAngularProject = SkipNonAngularProject;
|
|
19
14
|
//# sourceMappingURL=skip-project.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"skip-project.js","sourceRoot":"","sources":["../../../../../../packages/plugin/angular/src/lib/skip-project.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"skip-project.js","sourceRoot":"","sources":["../../../../../../packages/plugin/angular/src/lib/skip-project.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AAExD,MAAM,UAAU,qBAAqB,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW;IACvE,IAAI,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,WAAW,CAAC,EAAE;QACpD,OAAO,IAAI,CAAC;KACb;IACD,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,KAAK,CAAC,EAAE;QACxE,OAAO,IAAI,CAAC;KACb;IACD,IAAI,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,QAAQ,CAAC,IAAI,OAAO,CAAC,IAAI,EAAE,QAAQ,CAAC,WAAW,CAAC,EAAE;QAC3E,OAAO,IAAI,CAAC;KACb;IACD,OAAO,KAAK,CAAC;AACf,CAAC"}
|
|
@@ -1,74 +0,0 @@
|
|
|
1
|
-
user nginx;
|
|
2
|
-
worker_processes auto;
|
|
3
|
-
|
|
4
|
-
error_log /var/log/nginx/error.log notice;
|
|
5
|
-
pid /var/run/nginx.pid;
|
|
6
|
-
|
|
7
|
-
events {
|
|
8
|
-
worker_connections 1024;
|
|
9
|
-
}
|
|
10
|
-
|
|
11
|
-
http {
|
|
12
|
-
include /etc/nginx/mime.types;
|
|
13
|
-
default_type application/octet-stream;
|
|
14
|
-
|
|
15
|
-
log_format main '$remote_addr - $remote_user [$time_local] "$request" '
|
|
16
|
-
'$status $body_bytes_sent "$http_referer" '
|
|
17
|
-
'"$http_user_agent" "$http_x_forwarded_for"';
|
|
18
|
-
|
|
19
|
-
access_log /var/log/nginx/access.log main;
|
|
20
|
-
|
|
21
|
-
sendfile on;
|
|
22
|
-
tcp_nopush on;
|
|
23
|
-
|
|
24
|
-
keepalive_timeout 65;
|
|
25
|
-
|
|
26
|
-
gzip on;
|
|
27
|
-
gzip_types text/plain text/html text/css image/jpeg application/javascript image/png image/svg+xml font/woff font/woff2 application/json;
|
|
28
|
-
|
|
29
|
-
map $http_accept_language $accept_language {
|
|
30
|
-
default en;
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
server {
|
|
34
|
-
|
|
35
|
-
listen 80 default_server;
|
|
36
|
-
listen [::]:80 default_server;
|
|
37
|
-
server_name _;
|
|
38
|
-
|
|
39
|
-
root /usr/share/nginx/html;
|
|
40
|
-
|
|
41
|
-
index index.html;
|
|
42
|
-
|
|
43
|
-
location ~* .(js|css)$ {
|
|
44
|
-
expires max;
|
|
45
|
-
log_not_found on;
|
|
46
|
-
access_log off;
|
|
47
|
-
add_header Cache-Control "public";
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
location ~* .(ogg|ogv|svg|svgz|eot|otf|woff|mp4|ttf|rss|atom|jpg|jpeg|gif|png|ico|zip|tgz|gz|rar|bz2|doc|xls|exe|ppt|tar|mid|midi|wav|bmp|rtf)$ {
|
|
51
|
-
expires 1d;
|
|
52
|
-
log_not_found on;
|
|
53
|
-
access_log off;
|
|
54
|
-
add_header Cache-Control "public";
|
|
55
|
-
}
|
|
56
|
-
|
|
57
|
-
location ~* .(json|html|xml)$ {
|
|
58
|
-
expires epoch;
|
|
59
|
-
log_not_found on;
|
|
60
|
-
access_log on;
|
|
61
|
-
add_header Cache-Control "no-cache";
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
location / {
|
|
65
|
-
rewrite ^/(.*)$ https://$host/$accept_language/$1 redirect;
|
|
66
|
-
}
|
|
67
|
-
|
|
68
|
-
location ~ ^/(de|en|pl) {
|
|
69
|
-
try_files $uri $uri/ /$1/index.html?$args;
|
|
70
|
-
}
|
|
71
|
-
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
}
|