Urgent.News

What's breaking now, across thousands of outlets.

Tech

Moodle behind TLS offload needs $CFG->sslproxy

Moodle™ sees the request PHP received. If nginx, HAProxy, an F5, or Cloudflare terminates TLS and the PHP pool speaks HTTP on localhost, $_SERVER['HTTPS'] is empty. $CFG->wwwroot is still https://lms.example.org . Login then 302-loops, cookies drop the Secure flag, and generated URLs flip to http:// . config-dist.php names the switch: // Enable when using external SSL appliance for performance…

Moodle requires $CFG- sslproxy to be set to true when using an external SSL appliance for performance reasons. This flag allows Moodle to generate HTTPS URLs even if the PHP pool is accessed via HTTP on localhost. If this flag is missing, users may encounter issues such as 302 loops, mixed-content warnings, and session cookies without the Secure flag.

When $CFG- sslproxy is enabled, Moodle will not set the Strict-Transport-Security (HSTS) header, which should be set at the TLS terminator level instead. The $CFG- wwwroot must match the URL students type, including "https://" with no trailing slash. If both $CFG- sslproxy and $CFG- reverseproxy are enabled, Moodle may refuse access with an error message.

To ensure proper functionality, it is essential to redirect HTTP traffic to HTTPS using a redirect rule on the TLS terminator. Health checks should be performed over the internal HTTP port from the private network, using a Host header, without publishing that port. Additionally, running cURL commands after every proxy change and after cloning the stack into a new cluster is recommended to prevent mixed-content issues.

Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.

Read the original at dev.to →

More in Tech

The accessibility mistakes I keep finding on small business websites

I built a website accessibility scanner, and the first thing I did with it was point it at a lot of small business sites. Restaurants, dental clinics, a few agencies, a couple of gyms.

  • Only six or seven accessibility issues found repeatedly across 70 small business websites
  • Issues include poor readability, missing alternative text, unclear button/link names
  • Manual checks with keyboard and screen reader essential for true accessibility

I audited the top 20 iPhone teleprompter apps: they have 30,000+ ratings, I have 6

I make a small iPhone teleprompter app and it is nowhere in search for the word "teleprompter". Before writing more pages, I wanted to see who is there and where their traffic comes from.

  • App holds first position in US for "teleprompter offline" but absent from top 20 in other countries.
  • Author's app has only six ratings compared to Norton Five's 34,900 ratings.

Your model bill is a routing problem

A year into using language models, most companies have the same three problems. There are keys for five providers in a dozen places, it is hard to say what last month's spend bought, and every team…

  • Implementing a single gateway centralizes model calls for better control and visibility.
  • Requests are categorized into four tiers based on complexity, with specific models assigned to each.

Self-Host Gitea with Docker Compose: Git Service Setup

This tutorial was written with AI assistance from the project's official documentation. Verification status is stated at the end of the article.

  • Gitea is self-hosted Git service with repo hosting and issue tracking.
  • Requires Linux VPS, Docker Engine 24+, and Compose plugin.
  • Set up with .env file, compose.yml file, and Docker Compose.

More from Wednesday 18 November →