dol chinese mod pack in docker. https://github.com/Eltirosto/Degrees-of-Lewdity-Chinese-Localization
290
Here is a more formal and polished version:
This section provides guidance on using Docker Compose with basic authentication enabled.
To enable basic authentication for accessing the website, use the following Docker Compose configuration. The image is tagged as 'auth' to indicate the requirement for authentication.
version: "3"
services:
dol:
image: bai0012/dol_docker:v0.5.2.8-Lyra-5.3.0a-auth
ports:
- 443:443
volumes:
- ./htpasswd:/etc/nginx/.htpasswd:ro
- ./cert:/cert:ro
restart: unless-stopped
networks: {}
To generate the htpasswd file, execute the following command, replacing yourusername and yourpassword with your desired credentials:
docker run --rm -ti xmartlabs/htpasswd yourusername yourpassword > htpasswd
Below is the Dockerfile used to create the container image. It installs the necessary utilities for basic authentication and sets up the Nginx configuration.
FROM nginx:alpine-slim
RUN apk add --no-cache apache2-utils
RUN htpasswd -bc /etc/nginx/.htpasswd user password
COPY nginx.conf /etc/nginx/conf.d/default.conf
COPY . /usr/share/nginx/html
nginx.conf)The following Nginx configuration file sets up the server with SSL and basic authentication:
server {
listen 80;
listen 443 ssl;
server_name localhost;
ssl_certificate /cert/server.crt;
ssl_certificate_key /cert/server.key;
location / {
auth_basic "Restricted Content";
auth_basic_user_file /etc/nginx/.htpasswd;
root /usr/share/nginx/html;
index index.html;
}
}
This Docker image is based on the following projects:
Please ensure you follow any additional setup or licensing requirements outlined in these repositories.
Content type
Image
Digest
sha256:f6894582b…
Size
42 MB
Last updated
almost 2 years ago
docker pull bai0012/dol_docker:v0.5.2.8-Lyra-5.3.0a-auth