Compare commits
5 Commits
2025.12.12
...
2026.01.31
| Author | SHA1 | Date | |
|---|---|---|---|
| 9d35b3a2dd | |||
| e00255cd92 | |||
| 03188a9bdd | |||
| 9167060c6f | |||
| 4a7a4160fe |
@@ -5,6 +5,8 @@ RUN pip install --no-cache-dir -r requirements.txt
|
|||||||
COPY . .
|
COPY . .
|
||||||
RUN mkdocs build --clean
|
RUN mkdocs build --clean
|
||||||
|
|
||||||
FROM nginx:alpine
|
FROM joseluisq/static-web-server:2
|
||||||
COPY --from=builder /docs/site /usr/share/nginx/html
|
COPY config.toml /config.toml
|
||||||
EXPOSE 80
|
COPY --from=builder /docs/site /public
|
||||||
|
ENV SWS_CONFIG_FILE=/config.toml
|
||||||
|
EXPOSE 8080
|
||||||
14
config.toml
Normal file
14
config.toml
Normal 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:;"
|
||||||
@@ -50,7 +50,7 @@ These steps ensure that a Ceph Pool is created with appropriate Replication.
|
|||||||
* Check with: `ceph osd pool application get default.rgw.buckets.index`
|
* Check with: `ceph osd pool application get default.rgw.buckets.index`
|
||||||
|
|
||||||
* Create a user for the RADOS Gateway:
|
* Create a user for the RADOS Gateway:
|
||||||
```
|
```bash
|
||||||
ceph auth get-or-create client.rgw.k8s.svc \
|
ceph auth get-or-create client.rgw.k8s.svc \
|
||||||
mon 'allow r' \
|
mon 'allow r' \
|
||||||
osd 'allow rwx pool=default.rgw.buckets.data, allow rwx pool=default.rgw.buckets.index, allow rwx pool=.rgw.root, allow rwx pool=default.rgw.meta, allow rwx pool=default.rgw.log, allow rwx pool=default.rgw.control' \
|
osd 'allow rwx pool=default.rgw.buckets.data, allow rwx pool=default.rgw.buckets.index, allow rwx pool=.rgw.root, allow rwx pool=default.rgw.meta, allow rwx pool=default.rgw.log, allow rwx pool=default.rgw.control' \
|
||||||
@@ -72,13 +72,13 @@ These steps ensure that a Ceph Pool is created with appropriate Replication.
|
|||||||
|
|
||||||
* Create Secret manifests for deployment to K8s:
|
* Create Secret manifests for deployment to K8s:
|
||||||
|
|
||||||
```
|
```bash
|
||||||
kubectl create secret generic ceph-config \
|
kubectl create secret generic ceph-config \
|
||||||
--namespace=object-store \
|
--namespace=object-store \
|
||||||
--from-file=ceph.conf=./conf \
|
--from-file=ceph.conf=./conf \
|
||||||
--dry-run=client -o yaml > ceph-config-secret.yaml
|
--dry-run=client -o yaml > ceph-config-secret.yaml
|
||||||
```
|
```
|
||||||
```
|
```bash
|
||||||
kubectl create secret generic ceph-keyring \
|
kubectl create secret generic ceph-keyring \
|
||||||
--namespace=object-store \
|
--namespace=object-store \
|
||||||
--from-file=keyring=./keyring \
|
--from-file=keyring=./keyring \
|
||||||
@@ -95,7 +95,7 @@ These steps ensure that a Ceph Pool is created with appropriate Replication.
|
|||||||
|
|
||||||
#### Namespace
|
#### Namespace
|
||||||
|
|
||||||
```
|
```yaml
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Namespace
|
kind: Namespace
|
||||||
metadata:
|
metadata:
|
||||||
@@ -103,7 +103,7 @@ metadata:
|
|||||||
```
|
```
|
||||||
|
|
||||||
#### Service
|
#### Service
|
||||||
```
|
```yaml
|
||||||
apiVersion: v1
|
apiVersion: v1
|
||||||
kind: Service
|
kind: Service
|
||||||
metadata:
|
metadata:
|
||||||
@@ -126,7 +126,7 @@ spec:
|
|||||||
```
|
```
|
||||||
|
|
||||||
#### Deployment
|
#### Deployment
|
||||||
```
|
```yaml
|
||||||
apiVersion: apps/v1
|
apiVersion: apps/v1
|
||||||
kind: Deployment
|
kind: Deployment
|
||||||
metadata:
|
metadata:
|
||||||
@@ -263,7 +263,7 @@ spec:
|
|||||||
|
|
||||||
Deploy this in the namespace of the appliation requiring the S3 API Access
|
Deploy this in the namespace of the appliation requiring the S3 API Access
|
||||||
|
|
||||||
```sh
|
```bash
|
||||||
kubectl create secret generic s3-credentials \
|
kubectl create secret generic s3-credentials \
|
||||||
--namespace={application-namespace} \
|
--namespace={application-namespace} \
|
||||||
--from-literal=S3_ACCESS_KEY={access-key-from-user-creation} \
|
--from-literal=S3_ACCESS_KEY={access-key-from-user-creation} \
|
||||||
|
|||||||
3
docs/User/Account/reset-password.md
Normal file
3
docs/User/Account/reset-password.md
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
# Password Reset
|
||||||
|
|
||||||
|
This documentation is not written yet.
|
||||||
@@ -1,3 +1,10 @@
|
|||||||
# User
|
# User
|
||||||
|
|
||||||
This group contains documentation aimed at end-users.
|
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)
|
||||||
@@ -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 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.
|
||||||
10
mkdocs.yaml
10
mkdocs.yaml
@@ -1,14 +1,14 @@
|
|||||||
site_name: FJLA Documentation
|
site_name: FJLA Documentation
|
||||||
nav:
|
nav:
|
||||||
- Home: index.md
|
- Home: index.md
|
||||||
- User: index.md
|
- User:
|
||||||
|
- Account:
|
||||||
|
- Reset or Change Password: User/Account/reset-password.md
|
||||||
- Admin:
|
- Admin:
|
||||||
|
- About: Admin/index.md
|
||||||
- Virtualisation & Orchestration:
|
- Virtualisation & Orchestration:
|
||||||
- Combining K8s, PVE & Ceph: Admin/Virtualisation/pve-k8s-ceph-config.md
|
- Combining K8s, PVE & Ceph: Admin/Virtualisation/pve-k8s-ceph-config.md
|
||||||
- Deploy RADOS Gateway in K8s: Admin/Virtualisation/rados-gw-in-k8s.md
|
- Deploy RADOS Gateway in K8s: Admin/Virtualisation/rados-gw-in-k8s.md
|
||||||
|
|
||||||
theme:
|
theme:
|
||||||
name: mkdocs
|
name: material
|
||||||
color_mode: auto
|
|
||||||
user_color_mode_toggle: true
|
|
||||||
navigation_depth: 2
|
|
||||||
|
|||||||
@@ -1 +1,2 @@
|
|||||||
mkdocs
|
mkdocs
|
||||||
|
mkdocs-material
|
||||||
Reference in New Issue
Block a user