3 Commits

7 changed files with 39 additions and 10 deletions

View File

@@ -5,6 +5,10 @@ RUN pip install --no-cache-dir -r requirements.txt
COPY . .
RUN mkdocs build --clean
FROM joseluisq/static-web-server:2
FROM nginx:alpine
COPY --from=builder /docs/site /usr/share/nginx/html
EXPOSE 80
COPY config.toml /config.toml
COPY --from=builder /docs/site /public
ENV SWS_CONFIG_FILE=/config.toml
EXPOSE 8080

14
config.toml Normal file
View File

@@ -0,0 +1,14 @@
[general]
host = "0.0.0.0"
port = 8080
root = "/public"
log-level = "error"
compression = true
[[advanced.headers]]
source = "**/*"
[advanced.headers.headers]
"X-Frame-Options" = "DENY"
"X-Content-Type-Options" = "nosniff"
"Referrer-Policy" = "strict-origin-when-cross-origin"
"Content-Security-Policy" = "default-src 'self'; style-src 'self' 'unsafe-inline'; img-src 'self' data:;"

View File

@@ -0,0 +1,3 @@
# Password Reset
This documentation is not written yet.

View File

@@ -1,3 +1,10 @@
# User
This group contains documentation aimed at end-users.
## Helpful Links
- [Account Management](https://fjla.uk)
- [Password Reset](https://fjla.uk/reset)
## Help Documents
- [How do I reset my password?](Account/reset-password.md)

View File

@@ -4,4 +4,4 @@ This site provides user documentation, technical documentation, configuration st
If you are a user seeking help [click here](User/index.md).
If you are an administrator seeking configuration reference [click here](Admin/index.md).
You can use the menu to navigate through help documents and guides.

View File

@@ -1,14 +1,14 @@
site_name: FJLA Documentation
nav:
- Home: index.md
- User: index.md
- User:
- Account:
- Reset or Change Password: User/Account/reset-password.md
- Admin:
- About: Admin/index.md
- Virtualisation & Orchestration:
- Combining K8s, PVE & Ceph: Admin/Virtualisation/pve-k8s-ceph-config.md
- Deploy RADOS Gateway in K8s: Admin/Virtualisation/rados-gw-in-k8s.md
theme:
name: mkdocs
color_mode: auto
user_color_mode_toggle: true
navigation_depth: 2
name: material

View File

@@ -1 +1,2 @@
mkdocs
mkdocs-material