style: sed 's/\s\+\\$/ \\/'

This commit is contained in:
ange 2024-03-07 17:53:12 +01:00
parent 092e9f6cb1
commit 633e6f4795
Signed by: ange
GPG Key ID: 9E0C4157BB7BEB1D
31 changed files with 133 additions and 220 deletions

View File

@ -1 +1 @@
0 0 * * * root certbot --nginx -q renew 0 0 * * * root certbot --nginx renew > /proc/1/fd/1

View File

@ -1,9 +1,5 @@
FROM docker.io/python:3.11-slim as base FROM docker.io/python:3.12-slim as base
ENV DEBIAN_FRONTEND=noninteractive \ ENV VIRTUAL_ENV="/opt/venv" \
PYTHONDONTWRITEBYTECODE=1 \
PYTHONFAULTHANDLER=1 \
PYTHONUNBUFFERED=1 \
VIRTUAL_ENV="/opt/venv" \
PATH="/opt/venv/bin:$PATH" PATH="/opt/venv/bin:$PATH"
WORKDIR /app/ WORKDIR /app/

View File

@ -23,7 +23,7 @@ services:
- db:/var/lib/postgresql/data/ - db:/var/lib/postgresql/data/
gitea: gitea:
image: docker.io/gitea/gitea:1.21-rootless image: docker.io/gitea/gitea:latest-rootless
restart: unless-stopped restart: unless-stopped
ports: ports:
- "$SSH_PORT:2222" - "$SSH_PORT:2222"

View File

@ -1,4 +1,4 @@
FROM debian:12-slim FROM docker.io/debian:12-slim
ENV DEBIAN_FRONTEND=noninteractive ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update \ RUN apt-get update \
&& apt-get install -y --no-install-recommends \ && apt-get install -y --no-install-recommends \

View File

@ -9,7 +9,7 @@ RUN apt-get update \
ca-certificates \ ca-certificates \
curl \ curl \
&& rm -rf /var/lib/apt/lists/* && rm -rf /var/lib/apt/lists/*
ARG MONERO='https://downloads.getmonero.org/cli/linux64' ARG MONERO="https://downloads.getmonero.org/cli/linux64"
RUN curl -L "$MONERO" | tar xj --strip-components=1 RUN curl -L "$MONERO" | tar xj --strip-components=1
FROM base FROM base

View File

@ -25,8 +25,8 @@ services:
- SEARXNG_SECRET - SEARXNG_SECRET
- SEARXNG_REDIS_URL=redis://redis - SEARXNG_REDIS_URL=redis://redis
volumes: volumes:
- ./config/limiter.toml:/etc/searxng/limiter.toml:ro - ./limiter.toml:/etc/searxng/limiter.toml:ro
- ./config/settings.yml:/etc/searxng/settings.yml:ro - ./settings.yml:/etc/searxng/settings.yml:ro
networks: networks:
- default - default
- nginx - nginx

View File

@ -1,4 +0,0 @@
*
!.gitignore
!limiter.toml
!settings.yml

View File

@ -468,6 +468,12 @@ engines:
# # get your API key from: https://core.ac.uk/api-keys/register/ # # get your API key from: https://core.ac.uk/api-keys/register/
# api_key: 'unset' # api_key: 'unset'
- name: cppreference
engine: cppreference
shortcut: cpp
paging: false
disabled: true
- name: crossref - name: crossref
engine: crossref engine: crossref
shortcut: cr shortcut: cr
@ -550,6 +556,16 @@ engines:
require_api_key: false require_api_key: false
results: JSON results: JSON
language: de language: de
tests:
bahnhof:
matrix:
query: berlin
lang: en
result_container:
- not_empty
- ['one_title_contains', 'Berlin Hauptbahnhof']
test:
- unique_results
- name: deezer - name: deezer
engine: deezer engine: deezer
@ -1444,23 +1460,7 @@ engines:
- name: pypi - name: pypi
shortcut: pypi shortcut: pypi
engine: xpath engine: pypi
paging: true
search_url: https://pypi.org/search/?q={query}&page={pageno}
results_xpath: /html/body/main/div/div/div/form/div/ul/li/a[@class="package-snippet"]
url_xpath: ./@href
title_xpath: ./h3/span[@class="package-snippet__name"]
content_xpath: ./p
suggestion_xpath: /html/body/main/div/div/div/form/div/div[@class="callout-block"]/p/span/a[@class="link"]
first_page_num: 1
categories: [it, packages]
about:
website: https://pypi.org
wikidata_id: Q2984686
official_api_documentation: https://warehouse.readthedocs.io/api-reference/index.html
use_official_api: false
require_api_key: false
results: HTML
- name: qwant - name: qwant
qwant_categ: web qwant_categ: web
@ -1567,7 +1567,7 @@ engines:
- name: internetarchivescholar - name: internetarchivescholar
engine: internet_archive_scholar engine: internet_archive_scholar
shortcut: ias shortcut: ias
timeout: 5.0 timeout: 15.0
- name: superuser - name: superuser
engine: stackexchange engine: stackexchange
@ -1859,6 +1859,16 @@ engines:
about: about:
website: https://species.wikimedia.org/ website: https://species.wikimedia.org/
wikidata_id: Q13679 wikidata_id: Q13679
tests:
wikispecies:
matrix:
query: "Campbell, L.I. et al. 2011: MicroRNAs"
lang: en
result_container:
- not_empty
- ['one_title_contains', 'Tardigrada']
test:
- unique_results
- name: wiktionary - name: wiktionary
engine: mediawiki engine: mediawiki
@ -2152,6 +2162,11 @@ engines:
engine: tootfinder engine: tootfinder
shortcut: toot shortcut: toot
- name: voidlinux
engine: voidlinux
shortcut: void
disabled: true
- name: wallhaven - name: wallhaven
engine: wallhaven engine: wallhaven
# api_key: abcdefghijklmnopqrstuvwxyz # api_key: abcdefghijklmnopqrstuvwxyz

View File

@ -1,8 +0,0 @@
BASE_URL=cicd.
EMAIL=
WOODPECKER_AGENT_SECRET= #$(openssl rand -hex 32)
WOODPECKER_GITEA=true
WOODPECKER_GITEA_URL=
WOODPECKER_GITEA_CLIENT=
WOODPECKER_GITEA_SECRET=

View File

@ -1,55 +0,0 @@
---
services:
install_site:
build: install_site
environment:
- BASE_URL
- EMAIL
volumes:
- ./nginx.conf:/web/woodpecker.conf
- sites:/sites/
- certs:/etc/letsencrypt/
- certbotroot:/var/www/certbot/
- /var/run/docker.sock:/var/run/docker.sock
woodpecker-server:
image: docker.io/woodpeckerci/woodpecker-server:v2.0.0
restart: unless-stopped
env_file:
- .env
environment:
- WOODPECKER_OPEN=true
- WOODPECKER_HOST=https://$BASE_URL
volumes:
- server-data:/var/lib/woodpecker/
networks:
- nginx
- default
woodpecker-agent:
image: docker.io/woodpeckerci/woodpecker-agent:v2.0.0
restart: unless-stopped
command: agent
environment:
- WOODPECKER_SERVER=woodpecker-server:9000
- WOODPECKER_AGENT_SECRET
volumes:
- agent-config:/etc/woodpecker/
- /var/run/docker.sock:/var/run/docker.sock
depends_on:
- woodpecker-server
volumes:
server-data:
agent-config:
sites:
external: true
certs:
external: true
certbotroot:
external: true
networks:
nginx:
external: true

View File

@ -1 +0,0 @@
../_nginx/install_site

View File

@ -1,30 +0,0 @@
server {
listen 80;
listen [::]:80;
server_name $BASE_URL;
return 301 https://$host$request_uri;
}
server {
listen 443 ssl;
listen [::]:443 ssl;
server_name $BASE_URL;
http2 on;
ssl_certificate /etc/letsencrypt/live/$BASE_URL/fullchain.pem;
ssl_certificate_key /etc/letsencrypt/live/$BASE_URL/privkey.pem;
location / {
proxy_pass http://woodpecker-server:8000;
proxy_set_header X-Forwarded-For $remote_addr;
proxy_set_header X-Forwarded-Proto $scheme;
chunked_transfer_encoding off;
proxy_buffering off;
proxy_redirect off;
}
}