summaryrefslogtreecommitdiff
path: root/web/public
diff options
context:
space:
mode:
authorJames Elliott <james-d-elliott@users.noreply.github.com>2020-05-21 12:20:55 +1000
committerGitHub <noreply@github.com>2020-05-21 12:20:55 +1000
commitfcd0b5e46a90ff70161ac389eaa45ee30f496d4e (patch)
tree884db37827453f5c82993a4fbde3a8d20f4da8ac /web/public
parent469daedd36e03b6ff9a432255e6a27548a5631e4 (diff)
[FEATURE] Allow Authelia to listen on a specified path (#1027)
* [FEATURE] Allow Authelia to listen on a specified path * Fix linting and add a couple typescript types * Template index.html to support base_url * Update docs and configuration template * Access base path from body attribute. * Update CSP * Fix unit test Also remove check for body as this will never get triggered, react itself is loaded inside the body so this has to always be successful. * Template index.html with ${PUBLIC_URL} * Define PUBLIC_URL in .env(s) * Add docs clarification Co-authored-by: Amir Zarrinkafsh <nightah@me.com> Co-authored-by: Clement Michaud <clement.michaud34@gmail.com>
Diffstat (limited to 'web/public')
-rw-r--r--web/public/index.html41
1 files changed, 20 insertions, 21 deletions
diff --git a/web/public/index.html b/web/public/index.html
index df8a64a79..e24d9350f 100644
--- a/web/public/index.html
+++ b/web/public/index.html
@@ -1,22 +1,19 @@
<!DOCTYPE html>
<html lang="en">
- <head>
- <meta property="csp-nonce" content="{{.CSPNonce}}" />
- <meta charset="utf-8" />
- <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
- <meta name="viewport" content="width=device-width, initial-scale=1" />
- <meta name="theme-color" content="#000000" />
- <meta
- name="description"
- content="Authelia login portal for your apps"
- />
- <!--
+<head>
+ <meta property="csp-nonce" content="{{.CSPNonce}}" />
+ <meta charset="utf-8" />
+ <meta name="viewport" content="width=device-width, initial-scale=1" />
+ <meta name="theme-color" content="#000000" />
+ <meta name="description" content="Authelia login portal for your apps" />
+ <!--
manifest.json provides metadata used when your web app is installed on a
user's mobile device or desktop. See https://developers.google.com/web/fundamentals/web-app-manifest/
-->
- <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
- <!--
+ <link rel="manifest" href="%PUBLIC_URL%/manifest.json" />
+ <link rel="icon" href="%PUBLIC_URL%/favicon.ico" />
+ <!--
Notice the use of %PUBLIC_URL% in the tags above.
It will be replaced with the URL of the `public` folder during the build.
Only files inside the `public` folder can be referenced from the HTML.
@@ -25,12 +22,13 @@
work correctly both with client-side routing and a non-root public URL.
Learn how to configure a non-root public URL by running `npm run build`.
-->
- <title>Login - Authelia</title>
- </head>
- <body>
- <noscript>You need to enable JavaScript to run this app.</noscript>
- <div id="root"></div>
- <!--
+ <title>Login - Authelia</title>
+</head>
+
+<body data-basepath="%PUBLIC_URL%">
+ <noscript>You need to enable JavaScript to run this app.</noscript>
+ <div id="root"></div>
+ <!--
This HTML file is a template.
If you open it directly in the browser, you will see an empty page.
@@ -40,5 +38,6 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
- </body>
-</html>
+</body>
+
+</html> \ No newline at end of file