forked from username/flaskpaste
config: serve at paste.mymx.me root instead of /paste prefix
Migrate from harbor.mymx.me/paste to dedicated paste.mymx.me host.
This commit is contained in:
@@ -15,7 +15,7 @@ services:
|
|||||||
- flaskpaste-data:/app/data
|
- flaskpaste-data:/app/data
|
||||||
environment:
|
environment:
|
||||||
- FLASK_ENV=production
|
- FLASK_ENV=production
|
||||||
- FLASKPASTE_URL_PREFIX=/paste # HAProxy strips this before forwarding
|
- FLASKPASTE_URL_PREFIX= # No prefix - served at root
|
||||||
- FLASKPASTE_EXPIRY=432000 # 5 days
|
- FLASKPASTE_EXPIRY=432000 # 5 days
|
||||||
- FLASKPASTE_MAX_ANON=3145728 # 3 MiB
|
- FLASKPASTE_MAX_ANON=3145728 # 3 MiB
|
||||||
- FLASKPASTE_MAX_AUTH=52428800 # 50 MiB
|
- FLASKPASTE_MAX_AUTH=52428800 # 50 MiB
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ metadata:
|
|||||||
namespace: flaskpaste
|
namespace: flaskpaste
|
||||||
data:
|
data:
|
||||||
FLASK_ENV: "production"
|
FLASK_ENV: "production"
|
||||||
FLASKPASTE_URL_PREFIX: "/paste"
|
FLASKPASTE_URL_PREFIX: ""
|
||||||
FLASKPASTE_EXPIRY_ANON: "432000"
|
FLASKPASTE_EXPIRY_ANON: "432000"
|
||||||
FLASKPASTE_MAX_ANON: "3145728"
|
FLASKPASTE_MAX_ANON: "3145728"
|
||||||
FLASKPASTE_MAX_AUTH: "52428800"
|
FLASKPASTE_MAX_AUTH: "52428800"
|
||||||
@@ -110,24 +110,22 @@ spec:
|
|||||||
nodePort: 30500
|
nodePort: 30500
|
||||||
type: NodePort
|
type: NodePort
|
||||||
---
|
---
|
||||||
# Optional: Ingress for external access
|
apiVersion: networking.k8s.io/v1
|
||||||
# Uncomment and adjust for your ingress controller
|
kind: Ingress
|
||||||
# apiVersion: networking.k8s.io/v1
|
metadata:
|
||||||
# kind: Ingress
|
name: flaskpaste
|
||||||
# metadata:
|
namespace: flaskpaste
|
||||||
# name: flaskpaste
|
annotations:
|
||||||
# namespace: flaskpaste
|
traefik.ingress.kubernetes.io/router.middlewares: ""
|
||||||
# annotations:
|
spec:
|
||||||
# nginx.ingress.kubernetes.io/proxy-body-size: "50m"
|
rules:
|
||||||
# spec:
|
- host: paste.mymx.me
|
||||||
# rules:
|
http:
|
||||||
# - host: paste.example.com
|
paths:
|
||||||
# http:
|
- path: /
|
||||||
# paths:
|
pathType: Prefix
|
||||||
# - path: /
|
backend:
|
||||||
# pathType: Prefix
|
service:
|
||||||
# backend:
|
name: flaskpaste
|
||||||
# service:
|
port:
|
||||||
# name: flaskpaste
|
number: 80
|
||||||
# port:
|
|
||||||
# number: 80
|
|
||||||
|
|||||||
Reference in New Issue
Block a user