Files
computer-playbook/roles/web-svc-file
Kevin Veen-Birkenbach 231fd567b3 feat(frontend): rename inj roles to sys-front-*, add sys-svc-cdn, cache-busting lookup
Introduce sys-svc-cdn (cdn_paths/cdn_urls/cdn_dirs) and ensure CDN directories + latest symlink.

Rename sys-srv-web-inj-* → sys-front-inj-*; update includes/templates; serve shared/per-app CSS & JS via CDN.

Add lookup_plugins/local_mtime_qs.py for mtime-based cache busting; split CSS into default.css/bootstrap.css + optional per-app style.css.

CSP: use style-src-elem; drop unsafe-inline for styles. Services: fix SYS_SERVICE_ALL_ENABLED bool and controlled flush.

BREAKING CHANGE: role names changed; replace includes and references accordingly.

Conversation: https://chatgpt.com/share/68b55494-9ec4-800f-b559-44707029141d
2025-09-01 10:10:23 +02:00
..
2025-07-12 13:42:45 +02:00

Nginx File Server

🔥 Description

The Nginx File Server role sets up a simple and secure static file server using Nginx. It provides an easy way to serve files over HTTPS, including directory listing, .well-known support, and automatic SSL/TLS certificate integration via Let's Encrypt.

📖 Overview

Optimized for Archlinux, this role configures Nginx to act as a lightweight and efficient file server. It ensures that files are served securely, with optional directory browsing enabled, and proper MIME type handling for standard web clients.

Key Features

  • HTTPS Secured File Hosting: Automatically retrieves SSL/TLS certificates using Let's Encrypt.
  • Autoindex Directory Listing: Displays files and folders in a clean and human-readable format.
  • .well-known Support: Fully supports ACME and other .well-known path requirements.
  • Customizable File Path: Easily adjust the root directory for your files through Ansible variables.
  • Local Time Display: Enhances directory listings by showing local timestamps.

🎯 Purpose

The Nginx File Server role is ideal for hosting static files, sharing resources internally or externally, and serving ACME challenges for certificate issuance. It offers a reliable and minimalistic alternative to more complex file-sharing solutions.

🚀 Features

  • Automatic SSL/TLS Certificate Management: Integrates with Let's Encrypt for secure access.
  • Simple Configuration: Minimal setup with clear, maintainable templates.
  • Directory Listings: Enables browsing through served files with human-readable file sizes and timestamps.
  • Static Content Hosting: Serve any type of static files (documents, software, media, etc.).
  • Well-Known Folder Support: Allows serving validation files and other standardized resources easily.

🔗 Learn More