mirror of
https://github.com/mitchellkrogza/nginx-ultimate-bad-bot-blocker.git
synced 2025-09-09 13:55:41 +00:00
[GHA] Copy scripts to new dev-tools
Test generate-files.sh
This commit is contained in:
parent
8fc4a3d669
commit
17f99ffdc0
446 changed files with 336799 additions and 1 deletions
1
dev-tools/setup-ngxblocker/vhost-cases/.keep
Normal file
1
dev-tools/setup-ngxblocker/vhost-cases/.keep
Normal file
|
@ -0,0 +1 @@
|
|||
null
|
51
dev-tools/setup-ngxblocker/vhost-cases/ansible.conf
Normal file
51
dev-tools/setup-ngxblocker/vhost-cases/ansible.conf
Normal file
|
@ -0,0 +1,51 @@
|
|||
server {
|
||||
listen 8080;
|
||||
server_name xxxx;
|
||||
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name xxxxx
|
||||
root {{ vhost_www_directory }}/sites/public;
|
||||
|
||||
include {{ nginx_blockbots_cfg_path }};
|
||||
|
||||
ssl_certificate {{ full_certificates_path }}/fullchain.cer;
|
||||
ssl_certificate_key {{ full_certificates_path }}/{{ domain_to_protect }}.key;
|
||||
|
||||
include {{ nginx_yprox_shared_fo_location_path }};
|
||||
include {{ nginx_yprox_conf_fo_logs_path }};
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
root {{ vhost_www_directory }}/admin/public;
|
||||
server_name admin.{{ domain_to_protect }};
|
||||
|
||||
include {{ nginx_yprox_security_path }};
|
||||
include {{ nginx_yprox_ssl_path }};
|
||||
|
||||
ssl_certificate {{ full_certificates_path }}/fullchain.cer;
|
||||
ssl_certificate_key {{ full_certificates_path }}/{{ domain_to_protect }}.key;
|
||||
|
||||
include {{ nginx_yprox_shared_bo_location_path }};
|
||||
include {{ nginx_yprox_conf_bo_logs_path }};
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name alp.{{ domain_to_protect }};
|
||||
|
||||
root {{ alp_live_directory }};
|
||||
include {{ nginx_bots_cfg_path }}/blockbots.conf;
|
||||
index index.html;
|
||||
|
||||
ssl_certificate {{ full_certificates_path }}/fullchain.cer;
|
||||
ssl_certificate_key {{ full_certificates_path }}/{{ domain_to_protect }}.key;
|
||||
|
||||
include {{ nginx_yprox_shared_alp_location_path }};
|
||||
}
|
51
dev-tools/setup-ngxblocker/vhost-cases/ansible.vhost
Normal file
51
dev-tools/setup-ngxblocker/vhost-cases/ansible.vhost
Normal file
|
@ -0,0 +1,51 @@
|
|||
server {
|
||||
listen 8080;
|
||||
server_name xxxx;
|
||||
|
||||
location / {
|
||||
return 301 https://$host$request_uri;
|
||||
}
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name xxxxx
|
||||
root {{ vhost_www_directory }}/sites/public;
|
||||
|
||||
include {{ nginx_blockbots_cfg_path }};
|
||||
|
||||
ssl_certificate {{ full_certificates_path }}/fullchain.cer;
|
||||
ssl_certificate_key {{ full_certificates_path }}/{{ domain_to_protect }}.key;
|
||||
|
||||
include {{ nginx_yprox_shared_fo_location_path }};
|
||||
include {{ nginx_yprox_conf_fo_logs_path }};
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
root {{ vhost_www_directory }}/admin/public;
|
||||
server_name admin.{{ domain_to_protect }};
|
||||
|
||||
include {{ nginx_yprox_security_path }};
|
||||
include {{ nginx_yprox_ssl_path }};
|
||||
|
||||
ssl_certificate {{ full_certificates_path }}/fullchain.cer;
|
||||
ssl_certificate_key {{ full_certificates_path }}/{{ domain_to_protect }}.key;
|
||||
|
||||
include {{ nginx_yprox_shared_bo_location_path }};
|
||||
include {{ nginx_yprox_conf_bo_logs_path }};
|
||||
}
|
||||
|
||||
server {
|
||||
listen 443 ssl http2;
|
||||
server_name alp.{{ domain_to_protect }};
|
||||
|
||||
root {{ alp_live_directory }};
|
||||
include {{ nginx_bots_cfg_path }}/blockbots.conf;
|
||||
index index.html;
|
||||
|
||||
ssl_certificate {{ full_certificates_path }}/fullchain.cer;
|
||||
ssl_certificate_key {{ full_certificates_path }}/{{ domain_to_protect }}.key;
|
||||
|
||||
include {{ nginx_yprox_shared_alp_location_path }};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue