Files
computer-playbook/roles/web-app-yourls
Kevin Veen-Birkenbach 57d5269b07 CSP (Safari-safe): merge -elem/-attr into base; respect explicit disables; no mirror-back; header only for documents/workers
- Add CSP3 support for style/script: include -elem and -attr directives
- Base (style-src, script-src) now unions elem/attr (CSP2/Safari fallback)
- Respect explicit base disables (e.g. style-src.unsafe-inline: false)
- Hashes only when 'unsafe-inline' absent in the final base tokens
- Nginx: set CSP only for HTML/worker via header_filter_by_lua_block; drop for subresources
- Remove per-location header_filter; keep body_filter only
- Update app role flags to *-attr where appropriate; extend desktop CSS sources
- Add comprehensive unit tests for union/explicit-disable/no-mirror-back

Ref: https://chatgpt.com/share/68f87a0a-cebc-800f-bb3e-8c8ab4dee8ee
2025-10-22 13:53:06 +02:00
..
2025-07-09 02:26:50 +02:00

YOURLS

Description

YOURLS (Your Own URL Shortener) is an opensource URL shortening solution that enables you to create, track, and manage short links with ease. This deployment leverages Docker to provide a secure and easily scalable environment, ensuring that your YOURLS instance is configured for optimal performance and reliability.

Overview

This containerized YOURLS solution is built on robust Docker Compose and Ansible automation. It simplifies the deployment process by integrating with centralized MariaDB management and providing preconfigured health checks and environment settings. Whether you're looking to quickly generate memorable links or need detailed analytics, this deployment supports your digital strategy seamlessly.

Features

  • Efficient URL Shortening:
    Quickly generate short, branded links that help streamline your online presence.

  • Built-in Analytics:
    Monitor link performance and track click data to gain valuable insights into user engagement.

  • Centralized Database Integration:
    Seamlessly connect to a MariaDB instance for consistent, reliable data storage and management.

  • Configurable Environment:
    Easily customize your YOURLS instance through environment variables—set your site URL, admin credentials, and more.

  • Secure and Scalable:
    Benefit from container isolation and reproducible deployments that ensure your service is both secure and scalable.

Further Resources