Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 82819d3303 | |||
| 25ddae29f8 | |||
| 272d0988da | |||
| 65086fccc5 | |||
| 3ec576cc9d | |||
| 5d6d402612 | |||
| 9c9861f74e | |||
| 05f415d727 | |||
| 8109fcd18b | |||
| f5b4a493fd | |||
| 15fc072b76 | |||
| 2f1623b853 |
@@ -22,12 +22,12 @@ jobs:
|
|||||||
# - uses: actions/gitea-upload-artifact@v3
|
# - uses: actions/gitea-upload-artifact@v3
|
||||||
# with:
|
# with:
|
||||||
# path: /workspace/itik/bgwaf/seb4itik/byow/seb4itik-byow-0.1.2.tar.gz
|
# path: /workspace/itik/bgwaf/seb4itik/byow/seb4itik-byow-0.1.2.tar.gz
|
||||||
- name: Push artifacts
|
# - name: Push artifacts
|
||||||
run: |
|
# run: |
|
||||||
GITEA_REPO_OWNER=$(echo $GITEA_REPOSITORY | cut -d"/" -f1) && \
|
# GITEA_REPO_OWNER=$(echo $GITEA_REPOSITORY | cut -d"/" -f1) && \
|
||||||
GITEA_REPO_NAME=$(echo $GITEA_REPOSITORY | cut -d"/" -f2) && \
|
# GITEA_REPO_NAME=$(echo $GITEA_REPOSITORY | cut -d"/" -f2) && \
|
||||||
curl \
|
# curl \
|
||||||
-X PUT \
|
# -X PUT \
|
||||||
-H "Authorization: token ${{ secrets.CI_GITEA_PACKAGES_TOKEN }}" \
|
# -H "Authorization: token ${{ secrets.CI_GITEA_PACKAGES_TOKEN }}" \
|
||||||
--upload-file seb4itik-byow-${VER}.tar.gz \
|
# --upload-file seb4itik-byow-${VER}.tar.gz \
|
||||||
$GITEA_SERVER_URL/api/packages/${GITEA_REPO_OWNER}/generic/${GITEA_REPO_NAME}/${GITEA_SHA}/seb4itik-byow-${VER}.tar.gz
|
# $GITEA_SERVER_URL/api/packages/${GITEA_REPO_OWNER}/generic/${GITEA_REPO_NAME}/${GITEA_SHA}/seb4itik-byow-${VER}.tar.gz
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
namespace: "seb4itik"
|
namespace: "seb4itik"
|
||||||
name: "byow"
|
name: "byow"
|
||||||
version: "0.3.1"
|
version: "0.4.1"
|
||||||
readme: "README.md"
|
readme: "README.md"
|
||||||
authors:
|
authors:
|
||||||
- "S. Namèche <sebastien@itik.fr>"
|
- "S. Namèche <sebastien@itik.fr>"
|
||||||
|
|||||||
@@ -7,9 +7,9 @@ caddy_https_port: 443
|
|||||||
caddy_default_bind: null
|
caddy_default_bind: null
|
||||||
|
|
||||||
# Sotware versions
|
# Sotware versions
|
||||||
caddy_go_version: "1.26.1"
|
caddy_go_version: "1.26.3"
|
||||||
caddy_xcaddy_version: "0.4.5"
|
caddy_xcaddy_version: "0.4.5"
|
||||||
caddy_version: "2.11.2"
|
caddy_version: "2.11.3"
|
||||||
|
|
||||||
# If true, will not install software, just deploy Caddyfile and OWASP CRS
|
# If true, will not install software, just deploy Caddyfile and OWASP CRS
|
||||||
# configuration files.
|
# configuration files.
|
||||||
@@ -74,35 +74,48 @@ caddy_bot_barrier: false
|
|||||||
|
|
||||||
# Coraza
|
# Coraza
|
||||||
caddy_coraza: true
|
caddy_coraza: true
|
||||||
caddy_coraza_caddy_version: "v2@v2.2.0" # Coraza v3.3.3
|
caddy_coraza_caddy_version: "v2@v2.5.0" # Coraza v3.7.0
|
||||||
# Different sites can use different versions of OWASP CRS
|
# Different sites can use different versions of OWASP CRS
|
||||||
caddy_coraza_crs_versions: ["4.24.1"]
|
caddy_coraza_crs_versions: [
|
||||||
|
"4.25.0", # LTS
|
||||||
|
"4.26.0"
|
||||||
|
]
|
||||||
# OWASP CRS plugins that can be actived per site.
|
# OWASP CRS plugins that can be actived per site.
|
||||||
# Cf.: https://github.com/coreruleset/plugin-registry
|
# Cf.: https://github.com/coreruleset/plugin-registry
|
||||||
|
# FIXME: https://github.com/coreruleset/referer-hardening-plugin
|
||||||
caddy_coraza_crs_plugins:
|
caddy_coraza_crs_plugins:
|
||||||
- name: "drupal-rule-exclusions"
|
- name: "cpanel-rule-exclusions"
|
||||||
version: "1.0.0"
|
version: "1.0.0"
|
||||||
- name: "wordpress-rule-exclusions"
|
|
||||||
version: "1.2.0"
|
|
||||||
- name: "nextcloud-rule-exclusions"
|
|
||||||
version: "1.5.0"
|
|
||||||
- name: "dokuwiki-rule-exclusions"
|
- name: "dokuwiki-rule-exclusions"
|
||||||
version: "1.0.0"
|
version: "1.0.0"
|
||||||
- name: "phpmyadmin-rule-exclusions"
|
- name: "drupal-rule-exclusions"
|
||||||
version: "1.0.0"
|
version: "1.0.0"
|
||||||
has_after_config: true
|
- name: "google-oauth2"
|
||||||
|
version: "1.0.0"
|
||||||
|
- name: "nextcloud-rule-exclusions"
|
||||||
|
version: "1.6.0"
|
||||||
|
- name: "phpbb-rule-exclusions"
|
||||||
|
version: "1.0.0"
|
||||||
|
- name: "plausible-rule-exclusions"
|
||||||
|
version: "1.0.0"
|
||||||
|
provider: "EsadCetiner"
|
||||||
- name: "roundcube-rule-exclusions"
|
- name: "roundcube-rule-exclusions"
|
||||||
version: "1.0.4"
|
version: "1.0.4"
|
||||||
provider: "EsadCetiner"
|
provider: "EsadCetiner"
|
||||||
- name: "sogo-rule-exclusions"
|
- name: "sogo-rule-exclusions"
|
||||||
version: "1.0.4"
|
version: "1.0.4"
|
||||||
provider: "EsadCetiner"
|
provider: "EsadCetiner"
|
||||||
|
- name: "wordpress-rule-exclusions"
|
||||||
|
version: "1.2.0"
|
||||||
|
- name: "xenforo-rule-exclusions"
|
||||||
|
version: "1.0.0"
|
||||||
|
|
||||||
|
|
||||||
# Sites
|
# Sites
|
||||||
caddy_sites: []
|
caddy_sites: []
|
||||||
# - id: "" # Mandatory: short id for the site (for site specific directories and files)
|
# - id: "" # Mandatory: short id for the site (for site specific directories and files)
|
||||||
# name: "" # Mandatory: canonical domain name
|
# name: "" # Mandatory: canonical domain name
|
||||||
|
# no_upstream_host: false # Optionnal: Host header hostport, not upstream_hostport, default false
|
||||||
# paths: # Mandatory: targets for the reverse proxy
|
# paths: # Mandatory: targets for the reverse proxy
|
||||||
# - path: "*" # Optionnal: path of the request, default "*"
|
# - path: "*" # Optionnal: path of the request, default "*"
|
||||||
# strip_prefix: false # Optionnal: default "false"
|
# strip_prefix: false # Optionnal: default "false"
|
||||||
|
|||||||
@@ -136,7 +136,7 @@
|
|||||||
redir https://{{ site.name }}{uri}
|
redir https://{{ site.name }}{uri}
|
||||||
}
|
}
|
||||||
{% else %}
|
{% else %}
|
||||||
{% for alias in site.site_aliases | default(caddy_sites_defaults.site_aliases) %}
|
{% for alias in site.site_aliases | default([]) %}
|
||||||
{{ alias }},
|
{{ alias }},
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
@@ -152,6 +152,11 @@
|
|||||||
reverse_proxy {
|
reverse_proxy {
|
||||||
to {{ path.addrs | join(' ') }}
|
to {{ path.addrs | join(' ') }}
|
||||||
header_up X-Real-IP {remote}
|
header_up X-Real-IP {remote}
|
||||||
|
{% if site.no_upstream_host | default(caddy_sites_defaults.site_no_upstream_host) %}
|
||||||
|
header_up Host {hostport}
|
||||||
|
{% else %}
|
||||||
|
header_up Host {upstream_hostport}
|
||||||
|
{% endif %}
|
||||||
lb_policy {{ site.proxy_lb_policy | default(caddy_sites_defaults.proxy_lb_policy) }}
|
lb_policy {{ site.proxy_lb_policy | default(caddy_sites_defaults.proxy_lb_policy) }}
|
||||||
|
|
||||||
{% if site.proxy_active_checks | default(caddy_sites_defaults.proxy_active_checks) %}
|
{% if site.proxy_active_checks | default(caddy_sites_defaults.proxy_active_checks) %}
|
||||||
@@ -178,8 +183,8 @@
|
|||||||
}
|
}
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
|
|
||||||
{% if site.custom_cert | default (false) %}
|
{% if site.custom_cert | default(caddy_sites_defaults.custom_cert) %}
|
||||||
tls {{ site.custom_cert_file }} {{ site.custom_cert_key_file }}
|
tls {{ site.custom_cert_file | default(caddy_sites_defaults.custom_cert_file) }} {{ site.custom_cert_key_file | default(caddy_sites_defaults.custom_cert_key_file) }}
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
{% if site.filter_blacklist | default(caddy_sites_defaults.filter_blacklist) | length > 0 %}
|
{% if site.filter_blacklist | default(caddy_sites_defaults.filter_blacklist) | length > 0 %}
|
||||||
|
|||||||
@@ -2,8 +2,9 @@
|
|||||||
caddy_global_sites_defaults:
|
caddy_global_sites_defaults:
|
||||||
|
|
||||||
# Site aliases
|
# Site aliases
|
||||||
site_aliases_redirect: true
|
|
||||||
site_aliases: []
|
site_aliases: []
|
||||||
|
site_aliases_redirect: true
|
||||||
|
site_no_upstream_host: false
|
||||||
|
|
||||||
# Proxy settings
|
# Proxy settings
|
||||||
# See: https://caddyserver.com/docs/caddyfile/directives/reverse_proxy#lb_policy
|
# See: https://caddyserver.com/docs/caddyfile/directives/reverse_proxy#lb_policy
|
||||||
@@ -280,7 +281,7 @@ caddy_global_sites_defaults:
|
|||||||
|
|
||||||
# corazawaf/coraza-caddy
|
# corazawaf/coraza-caddy
|
||||||
crs: true
|
crs: true
|
||||||
crs_version: "4.24.1"
|
crs_version: "4.25.0" # LTS
|
||||||
crs_log_only: false
|
crs_log_only: false
|
||||||
crs_plugins: []
|
crs_plugins: []
|
||||||
crs_exceptions:
|
crs_exceptions:
|
||||||
|
|||||||
@@ -12,7 +12,7 @@ consul_ui_secret_id: null # Generate with "uuidgen"
|
|||||||
|
|
||||||
# Defaults.
|
# Defaults.
|
||||||
consul_domain: "consul"
|
consul_domain: "consul"
|
||||||
consul_version: "1.22.3"
|
consul_version: "1.22.7"
|
||||||
consul_client_addr: "127.0.0.1"
|
consul_client_addr: "127.0.0.1"
|
||||||
consul_bind_addr: "{{ ansible_default_ipv4.address }}"
|
consul_bind_addr: "{{ ansible_default_ipv4.address }}"
|
||||||
consul_default_check_interval: "15s"
|
consul_default_check_interval: "15s"
|
||||||
|
|||||||
Reference in New Issue
Block a user