Commit fd7d7c2a authored by Simonas's avatar Simonas

nginx config update

parent 7c200180
...@@ -8,32 +8,4 @@ ...@@ -8,32 +8,4 @@
"indent": ["error", 4], "indent": ["error", 4],
"semi": ["error", "always"] "semi": ["error", "always"]
} }
// "extends": [
// "standard-preact",
// "eslint:recommended"
// ],
// "parserOptions": {
// "ecmaVersion": 6,
// "sourceType": "module",
// "ecmaFeatures": {
// "jsx": true
// }
// },
// "env": {
// "browser": true,
// "es6": true,
// "node": true,
// "mocha": true
// },
// "rules": {
// "no-console": 0, // disallow use of console (off by default in the node environment)
// "no-unused-vars": 1, // disallow declaration of variables that are not used in the code
// "react/jsx-indent": [2, 4]
// // 'indent': [2, 2, { 'SwitchCase': 1, 'VariableDeclarator': 4 }],
// // 'react/jsx-indent': [2, 4],
// // 'react/jsx-indent-props': [0, 2]
// }
} }
...@@ -162,6 +162,7 @@ http { ...@@ -162,6 +162,7 @@ http {
font/woff2 "*"; font/woff2 "*";
} }
client_body_buffer_size 10M;
client_max_body_size 10M; client_max_body_size 10M;
# Include files in the conf.d folder. # Include files in the conf.d folder.
......
...@@ -2,14 +2,6 @@ ...@@ -2,14 +2,6 @@
# CV security redirects # CV security redirects
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
location ^~ /wp-content/uploads/2019/ {
try_files $uri $uri/ /index.php?$args;
if ($http_referer !~* .*livas.biuro.ee.*) {
return 403;
}
}
location ^~ /wp-content/uploads/additional/ { location ^~ /wp-content/uploads/additional/ {
try_files $uri $uri/ /index.php?$args; try_files $uri $uri/ /index.php?$args;
......
...@@ -2,14 +2,6 @@ ...@@ -2,14 +2,6 @@
# CV security redirects # CV security redirects
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
location ^~ /wp-content/uploads/2019/ {
try_files $uri $uri/ /index.php?$args;
if ($http_referer !~* .*livas.biuro.lt.*) {
return 403;
}
}
location ^~ /wp-content/uploads/additional/ { location ^~ /wp-content/uploads/additional/ {
try_files $uri $uri/ /index.php?$args; try_files $uri $uri/ /index.php?$args;
......
...@@ -2,14 +2,6 @@ ...@@ -2,14 +2,6 @@
# CV security redirects # CV security redirects
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
location ^~ /wp-content/uploads/2019/ {
try_files $uri $uri/ /index.php?$args;
if ($http_referer !~* .*livas.biuro.lv.*) {
return 403;
}
}
location ^~ /wp-content/uploads/additional/ { location ^~ /wp-content/uploads/additional/ {
try_files $uri $uri/ /index.php?$args; try_files $uri $uri/ /index.php?$args;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment