Compare commits
5 Commits
ci/d4-reci
...
v5-stale-d
| Author | SHA1 | Date | |
|---|---|---|---|
| 71e7326a99 | |||
| ee5cb811c6 | |||
| 194915b078 | |||
| 9802e61496 | |||
| fc2c80cfac |
2
abra.sh
2
abra.sh
@ -1,2 +1,2 @@
|
|||||||
export NGINX_DEFAULT_CONF_VERSION=v6
|
export NGINX_DEFAULT_CONF_VERSION=v7
|
||||||
export ENTRYPOINT_CONF_VERSION=v3
|
export ENTRYPOINT_CONF_VERSION=v3
|
||||||
|
|||||||
@ -19,7 +19,7 @@ services:
|
|||||||
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
- "traefik.http.routers.${STACK_NAME}.middlewares=${STACK_NAME}-redirect"
|
||||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLForceHost=true"
|
||||||
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
- "traefik.http.middlewares.${STACK_NAME}-redirect.headers.SSLHost=${DOMAIN}"
|
||||||
- "coop-cloud.${STACK_NAME}.version=1.11.0+1.29.0"
|
- "coop-cloud.${STACK_NAME}.version=1.11.2+1.29.0"
|
||||||
- "backupbot.backup=true"
|
- "backupbot.backup=true"
|
||||||
- "backupbot.backup.path=/usr/share/nginx/html"
|
- "backupbot.backup.path=/usr/share/nginx/html"
|
||||||
environment:
|
environment:
|
||||||
|
|||||||
@ -7,6 +7,13 @@ server {
|
|||||||
#charset koi8-r;
|
#charset koi8-r;
|
||||||
#access_log /var/log/nginx/host.access.log main;
|
#access_log /var/log/nginx/host.access.log main;
|
||||||
|
|
||||||
|
location ~ \.txt$ {
|
||||||
|
root /usr/share/nginx/html;
|
||||||
|
types { }
|
||||||
|
default_type application/octet-stream;
|
||||||
|
try_files $uri =404;
|
||||||
|
}
|
||||||
|
|
||||||
location / {
|
location / {
|
||||||
root /usr/share/nginx/html;
|
root /usr/share/nginx/html;
|
||||||
index index.html index.htm;
|
index index.html index.htm;
|
||||||
|
|||||||
@ -1,12 +0,0 @@
|
|||||||
"""Recipe-local test shipped by the recipe repo (D4). Runs against the LIVE deployment via the
|
|
||||||
cc-ci contract env vars CCCI_BASE_URL / CCCI_APP_DOMAIN."""
|
|
||||||
import os, ssl, urllib.request
|
|
||||||
|
|
||||||
|
|
||||||
def test_recipe_local_serves_content():
|
|
||||||
base = os.environ["CCCI_BASE_URL"]
|
|
||||||
ctx = ssl.create_default_context(); ctx.check_hostname = False; ctx.verify_mode = ssl.CERT_NONE
|
|
||||||
with urllib.request.urlopen(base, timeout=15, context=ctx) as r:
|
|
||||||
body = r.read().decode(errors="replace")
|
|
||||||
assert r.status == 200
|
|
||||||
assert "nginx" in body.lower(), "recipe-local: expected the served nginx page"
|
|
||||||
Reference in New Issue
Block a user