Browse Source

.env handling

sni-wip
forest 9 months ago
parent
commit
8522413f2a
3 changed files with 7 additions and 73 deletions
  1. +6
    -0
      .dockerignore
  2. +1
    -0
      .gitignore
  3. +0
    -73
      remove_fbclid_caddy.json

+ 6
- 0
.dockerignore View File

@ -0,0 +1,6 @@
.env
README.md
ghost-theme
caddy
build-docker.sh
Dockerfile

+ 1
- 0
.gitignore View File

@ -0,0 +1 @@
.env

+ 0
- 73
remove_fbclid_caddy.json View File

@ -1,73 +0,0 @@
{
"apps": {
"http": {
"servers": {
"srv0": {
"listen": [
":8080"
],
"routes": [
{
"match": [
{
"host": [
"localhost"
]
}
],
"handle": [
{
"handler": "subroute",
"routes": [
{
"handle": [
{
"handler": "static_response",
"headers": {
"Location": [
"{http.regexp.fbclid_regex.1}"
]
},
"status_code": 302
}
],
"match": [
{
"vars_regexp": {
"{http.request.uri}": {
"name": "fbclid_regex",
"pattern": "^(.*?)([?&]fbclid=[a-zA-Z0-9_-]+)$"
}
}
}
]
},
{
"handle": [
{
"handler": "reverse_proxy",
"upstreams": [
{
"dial": "127.0.0.1:80"
}
]
}
]
}
]
}
],
"terminal": true
}
],
"automatic_https": {
"disable": true,
"skip": [
"localhost"
]
}
}
}
}
}
}

Loading…
Cancel
Save