Add an icon to the webpages of example

This commit is contained in:
Clement Michaud 2017-07-16 16:19:44 +02:00
parent 5873a4c328
commit 6d5fc84693
6 changed files with 6 additions and 5 deletions

View File

@ -3,8 +3,7 @@ services:
nginx: nginx:
image: nginx:alpine image: nginx:alpine
volumes: volumes:
- ./example/nginx/index.html:/usr/share/nginx/html/index.html - ./example/nginx/html:/usr/share/nginx/html
- ./example/nginx/secret.html:/usr/share/nginx/html/secret.html
- ./example/nginx/ssl:/etc/ssl - ./example/nginx/ssl:/etc/ssl
- ./example/nginx/nginx.conf:/etc/nginx/nginx.conf - ./example/nginx/nginx.conf:/etc/nginx/nginx.conf
ports: ports:

BIN
example/nginx/html/icon.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

View File

@ -1,6 +1,8 @@
<!DOCTYPE>
<html> <html>
<head> <head>
<title>Home page</title> <title>Home page</title>
<link rel="icon" href="/icon.png" type="image/png" />
</head> </head>
<body> <body>
<h1>Access the secret</h1> <h1>Access the secret</h1>

View File

@ -1,6 +1,7 @@
<html> <html>
<head> <head>
<title>Secret</title> <title>Secret</title>
<link rel="icon" href="/icon.png" type="image/png" />
</head> </head>
<body> <body>
This is a very important secret!<br/> This is a very important secret!<br/>

View File

@ -4,7 +4,7 @@ html
head head
title Authelia - 2FA title Authelia - 2FA
meta(name="viewport", content="width=device-width, initial-scale=1.0")/ meta(name="viewport", content="width=device-width, initial-scale=1.0")/
link(rel="icon", href="/img/icon.png" type="image/gif" sizes="32x32")/ link(rel="icon", href="/img/icon.png" type="image/png" sizes="32x32")/
link(rel="stylesheet", type="text/css", href="/css/authelia.min.css")/ link(rel="stylesheet", type="text/css", href="/css/authelia.min.css")/
if redirection_url if redirection_url
<meta http-equiv="refresh" content="5;url=#{redirection_url}"> <meta http-equiv="refresh" content="5;url=#{redirection_url}">

View File

@ -11,8 +11,7 @@ services:
nginx-tests: nginx-tests:
image: nginx:alpine image: nginx:alpine
volumes: volumes:
- ./example/nginx/index.html:/usr/share/nginx/html/index.html - ./example/nginx/html:/usr/share/nginx/html
- ./example/nginx/secret.html:/usr/share/nginx/html/secret.html
- ./example/nginx/ssl:/etc/ssl - ./example/nginx/ssl:/etc/ssl
- ./test/integration/nginx.conf:/etc/nginx/nginx.conf - ./test/integration/nginx.conf:/etc/nginx/nginx.conf
expose: expose: