Update admin theme/layout and refresh README details.
Align the project baseline with the latest admin interface styling and layout structure while documenting setup and usage updates in README.
This commit is contained in:
@@ -0,0 +1,4 @@
|
||||
# Docker notes
|
||||
|
||||
`docker-compose.yml` is for local development.
|
||||
`docker-compose.test.yml` is for CI-like integration and e2e testing.
|
||||
@@ -0,0 +1,9 @@
|
||||
services:
|
||||
web:
|
||||
image: compton/web:staging
|
||||
api:
|
||||
image: compton/api:staging
|
||||
nginx:
|
||||
image: nginx:stable-alpine
|
||||
volumes:
|
||||
- ../nginx/default.conf:/etc/nginx/conf.d/default.conf:ro
|
||||
@@ -0,0 +1,20 @@
|
||||
import http from "k6/http";
|
||||
import { check, sleep } from "k6";
|
||||
|
||||
export const options = {
|
||||
stages: [
|
||||
{ duration: "1m", target: 10 },
|
||||
{ duration: "3m", target: 50 },
|
||||
{ duration: "1m", target: 0 }
|
||||
],
|
||||
thresholds: {
|
||||
http_req_duration: ["p(95)<300"],
|
||||
http_req_failed: ["rate<0.01"]
|
||||
}
|
||||
};
|
||||
|
||||
export default function () {
|
||||
const contentList = http.get("http://localhost:8000/api/v1/content/pages");
|
||||
check(contentList, { "content list is 200": (r) => r.status === 200 });
|
||||
sleep(1);
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
server {
|
||||
listen 80;
|
||||
|
||||
add_header X-Content-Type-Options "nosniff" always;
|
||||
add_header X-Frame-Options "DENY" always;
|
||||
add_header Strict-Transport-Security "max-age=63072000; includeSubDomains; preload" always;
|
||||
add_header Referrer-Policy "strict-origin-when-cross-origin" always;
|
||||
add_header Permissions-Policy "camera=(), microphone=(), geolocation=()" always;
|
||||
add_header Content-Security-Policy "default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline' https://fonts.googleapis.com; font-src 'self' https://fonts.gstatic.com; img-src 'self' data:; connect-src 'self'; frame-ancestors 'none'; base-uri 'self'; form-action 'self';" always;
|
||||
|
||||
location /api/ {
|
||||
proxy_pass http://api:8000;
|
||||
}
|
||||
|
||||
location / {
|
||||
proxy_pass http://web:5173;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user