Commit a1f6be59 authored by Simonas's avatar Simonas

in progress

parent 84568082
This source diff could not be displayed because it is too large. You can view the blob instead.
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -2,7 +2,7 @@ PROJECT=biuro-staging ...@@ -2,7 +2,7 @@ PROJECT=biuro-staging
IMAGE_NGINX=fholzer/nginx-brotli IMAGE_NGINX=fholzer/nginx-brotli
IMAGE_MYSQL=mariadb:10.3 IMAGE_MYSQL=mariadb:10.3
IMAGE_WORDPRESS=biuro/web:1.2.0 IMAGE_WORDPRESS=web:1.3.0
IMAGE_WORDPRESS_CLI=wordpress:cli-php7.3 IMAGE_WORDPRESS_CLI=wordpress:cli-php7.3
DB_NAME=staging_biuro DB_NAME=staging_biuro
......
...@@ -96,35 +96,43 @@ services: ...@@ -96,35 +96,43 @@ services:
- './wp-init.sh:/usr/local/bin/wp-init.sh' - './wp-init.sh:/usr/local/bin/wp-init.sh'
command: > command: >
/bin/sh -c ' /bin/sh -c '
sleep 15; sleep 90;
echo "WP CLI init"; echo "WP CLI init";
wp core update --force; wp core update --force;
wp core update-db --network; wp core update-db --network;
wp option update permalink_structure "/%postname%/" --skip-themes --skip-plugins;
# wp option update permalink_structure "/%postname%/" --skip-themes --skip-plugins;
# wp option update timezone_string "Manual Offsets/UTC+2"; # wp option update timezone_string "Manual Offsets/UTC+2";
# wp option update date_format "Y-m-d"; # wp option update date_format "Y-m-d";
wp option update time_format "H:i"; # wp option update time_format "H:i";
# wp plugin install permalink-manager --force --activate-network; # wp plugin install permalink-manager --force --activate-network;
wp plugin install pods --activate-network; # wp plugin install pods --activate-network;
wp plugin install polylang --activate-network; # wp plugin install polylang --activate-network;
wp plugin install wordpress-seo --activate-network; # wp plugin install wordpress-seo --activate-network;
wp plugin install loco-translate --activate-network; # wp plugin install loco-translate --activate-network;
wp plugin install google-sitemap-generator --activate-network; # wp plugin install google-sitemap-generator --activate-network;
wp plugin update --all; # wp plugin update --all;
wp plugin activate akismet --network;
wp plugin activate biuro-contacts --network; wp plugin update akismet --version=4.1.2;
wp plugin activate biuro-feedbacks --network; wp plugin update hello --version=1.7.2;
wp plugin activate biuro-html --network;
wp plugin activate biuro-sections --network; # wp plugin activate akismet --network;
wp plugin activate biuro-services --network; # wp plugin activate biuro-contacts --network;
wp plugin activate biuro-values --network; # wp plugin activate biuro-feedbacks --network;
wp plugin activate cookies-warning --network; # wp plugin activate biuro-html --network;
wp plugin activate data-controller --network; # wp plugin activate biuro-sections --network;
wp theme update --all; # wp plugin activate biuro-services --network;
wp theme activate biuro; # wp plugin activate biuro-values --network;
# wp plugin activate cookies-warning --network;
# wp plugin activate data-controller --network;
# wp theme update --all;
# wp theme activate biuro;
wp language core update; wp language core update;
wp language theme update --all;
wp language plugin update --all; # wp language theme update --all;
# wp language plugin update --all;
echo "WP CLI done. Ready to use."; echo "WP CLI done. Ready to use.";
' '
......
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -10,10 +10,20 @@ location ^~ /wp-content/uploads/2019/ { ...@@ -10,10 +10,20 @@ location ^~ /wp-content/uploads/2019/ {
} }
} }
location ^~ /wp-content/uploads/additional/ {
try_files $uri $uri/ /index.php?$args;
if ($http_referer !~* .*livas.biuro.ee.*) {
return 403;
}
}
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# 301 biuro.ee redirects # 301 biuro.ee redirects
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
rewrite ^/admin/?$ /wp-login.php permanent;
# Biuro SEO issues # Biuro SEO issues
# https://docs.google.com/spreadsheets/d/1dXP0dh_v2sFajrcwR2_9HONMadCdZQW4Y2dVXvhxG3E/edit?ts=5b5eaa6b#gid=0 # https://docs.google.com/spreadsheets/d/1dXP0dh_v2sFajrcwR2_9HONMadCdZQW4Y2dVXvhxG3E/edit?ts=5b5eaa6b#gid=0
# https://docs.google.com/spreadsheets/d/1wFz9wrCsPOwCm0R0NnrImhUMFlF35Y4-vCOL7fyZpmI/edit#gid=280898487 # https://docs.google.com/spreadsheets/d/1wFz9wrCsPOwCm0R0NnrImhUMFlF35Y4-vCOL7fyZpmI/edit#gid=280898487
......
...@@ -10,10 +10,20 @@ location ^~ /wp-content/uploads/2019/ { ...@@ -10,10 +10,20 @@ location ^~ /wp-content/uploads/2019/ {
} }
} }
location ^~ /wp-content/uploads/additional/ {
try_files $uri $uri/ /index.php?$args;
if ($http_referer !~* .*livas.biuro.lt.*) {
return 403;
}
}
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# 301 biuro.lt redirects # 301 biuro.lt redirects
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
rewrite ^/admin/?$ /wp-login.php permanent;
# rewrite ^/darbo-pasiulymai$ / permanent; # rewrite ^/darbo-pasiulymai$ / permanent;
# rewrite ^/darbo-pasiulymai/(.*)$ /? permanent; # rewrite ^/darbo-pasiulymai/(.*)$ /? permanent;
......
...@@ -10,10 +10,20 @@ location ^~ /wp-content/uploads/2019/ { ...@@ -10,10 +10,20 @@ location ^~ /wp-content/uploads/2019/ {
} }
} }
location ^~ /wp-content/uploads/additional/ {
try_files $uri $uri/ /index.php?$args;
if ($http_referer !~* .*livas.biuro.lv.*) {
return 403;
}
}
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
# 301 biuro.lv redirects # 301 biuro.lv redirects
# ---------------------------------------------------------------------- # ----------------------------------------------------------------------
rewrite ^/admin/?$ /wp-login.php permanent;
# Biuro SEO issues # Biuro SEO issues
# https://docs.google.com/spreadsheets/d/1dXP0dh_v2sFajrcwR2_9HONMadCdZQW4Y2dVXvhxG3E/edit?ts=5b5eaa6b#gid=0 # https://docs.google.com/spreadsheets/d/1dXP0dh_v2sFajrcwR2_9HONMadCdZQW4Y2dVXvhxG3E/edit?ts=5b5eaa6b#gid=0
# https://docs.google.com/spreadsheets/d/1wFz9wrCsPOwCm0R0NnrImhUMFlF35Y4-vCOL7fyZpmI/edit#gid=0 # https://docs.google.com/spreadsheets/d/1wFz9wrCsPOwCm0R0NnrImhUMFlF35Y4-vCOL7fyZpmI/edit#gid=0
......
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