mirror of
https://github.com/makeplane/plane
synced 2025-08-07 19:59:33 +00:00
Compare commits
1 Commits
chore_page
...
proxy-dock
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
5f5ab2b75d |
@@ -1,9 +1,9 @@
|
||||
FROM nginx:1.25.0-alpine
|
||||
|
||||
RUN rm /etc/nginx/conf.d/default.conf
|
||||
COPY nginx.conf.dev /etc/nginx/nginx.conf.template
|
||||
COPY nginx/nginx.conf.dev /etc/nginx/nginx.conf.template
|
||||
|
||||
COPY ./env.sh /docker-entrypoint.sh
|
||||
COPY nginx/env.sh /docker-entrypoint.sh
|
||||
|
||||
RUN chmod +x /docker-entrypoint.sh
|
||||
# Update all environment variables
|
||||
@@ -1,9 +1,9 @@
|
||||
FROM nginx:1.25.0-alpine
|
||||
|
||||
RUN rm /etc/nginx/conf.d/default.conf
|
||||
COPY nginx.conf.template /etc/nginx/nginx.conf.template
|
||||
COPY nginx/nginx.conf.template /etc/nginx/nginx.conf.template
|
||||
|
||||
COPY ./env.sh /docker-entrypoint.sh
|
||||
COPY nginx/env.sh /docker-entrypoint.sh
|
||||
|
||||
RUN chmod +x /docker-entrypoint.sh
|
||||
# Update all environment variables
|
||||
1
proxy/caddy/.prettierignore
Normal file
1
proxy/caddy/.prettierignore
Normal file
@@ -0,0 +1 @@
|
||||
nginx.conf.template
|
||||
39
proxy/caddy/Caddyfile
Normal file
39
proxy/caddy/Caddyfile
Normal file
@@ -0,0 +1,39 @@
|
||||
(plane_proxy) {
|
||||
request_body {
|
||||
max_size {$FILE_SIZE_LIMIT}
|
||||
}
|
||||
|
||||
reverse_proxy /spaces/* space:3000
|
||||
reverse_proxy /god-mode/* admin:3000
|
||||
reverse_proxy /api/* api:8000
|
||||
reverse_proxy /auth/* api:8000
|
||||
reverse_proxy /live/* live:3000
|
||||
reverse_proxy /{$BUCKET_NAME} plane-minio:9000
|
||||
reverse_proxy /{$BUCKET_NAME}/* plane-minio:9000
|
||||
reverse_proxy /* web:3000
|
||||
}
|
||||
|
||||
{
|
||||
email {$CERT_EMAIL:admin@example.com}
|
||||
acme_ca {$CERT_ACME_CA}
|
||||
{$CERT_ACME_DNS}
|
||||
servers {
|
||||
timeouts {
|
||||
read_body 600s
|
||||
read_header 30s
|
||||
write 600s
|
||||
idle 600s
|
||||
}
|
||||
max_header_size 25MB
|
||||
client_ip_headers X-Forwarded-For X-Real-IP
|
||||
trusted_proxies static {$TRUSTED_PROXIES:0.0.0.0/0}
|
||||
}
|
||||
log {
|
||||
output {$LOG_OUTPUT:stdout}
|
||||
level {$LOG_LEVEL:INFO}
|
||||
}
|
||||
}
|
||||
|
||||
{$SITE_ADDRESS} {
|
||||
import plane_proxy
|
||||
}
|
||||
Reference in New Issue
Block a user