Skip to content

Instantly share code, notes, and snippets.

View surrealchemist's full-sized avatar

Joshua Kleiner surrealchemist

  • Sesame Workshop
View GitHub Profile
@surrealchemist
surrealchemist / auth-basic.conf
Last active July 3, 2019 12:28 — forked from Thermionix/auth-basic.conf
Adding "port_in_redirect off;" which fixes the problem caused when your router is forwarding from a different port. This stops nginx from adding the port back in which is needed in a couple cases.
auth_basic "Restricted";
auth_basic_user_file /usr/local/etc/nginx/htpasswd;
version: '3'
services:
drupal-data:
build: .
image: drupal-data:latest
volumes:
- data-volume:/var/www/html/
- nginx-config:/etc/nginx/conf.d/
nginx:
0406f1768bfe5ca05a4bbe4b85d2c881b85874439fa87b08f7c5ccfb215c7d808086c18a01f773463626db175cbf12703da0f924ebfe674301b9b46e57b2db7e1a;papageod