tangled
alpha
login
or
join now
aottr.dev
/
paw
0
fork
atom
Free and open source ticket system written in python
0
fork
atom
overview
issues
pulls
pipelines
add Caddyfile
Dustin Kroeger
2 years ago
f820f5ab
83675287
+21
-1
1 changed file
expand all
collapse all
unified
split
docs
docker_compose_deployment.md
+21
-1
docs/docker_compose_deployment.md
···
37
37
For this we slightly modify the deployment volumes:
38
38
39
39
```yaml
40
40
-
---
41
40
volumes:
42
41
- db:/usr/src/app/db.sqlite3
43
42
- /opt/paw/media:/usr/src/app/media
···
45
44
```
46
45
47
46
Now you write directives in your config to host these files, the following snipped shows an example nginx config:
47
47
+
48
48
+
#### Example nginx config
48
49
49
50
```nginx
50
51
upstream paw {
···
73
74
proxy_set_header Host $host;
74
75
proxy_redirect off;
75
76
}
77
77
+
}
78
78
+
```
79
79
+
80
80
+
#### Example Caddyfile
81
81
+
82
82
+
```
83
83
+
example.com {
84
84
+
85
85
+
handle /static/* {
86
86
+
file_server /opt/paw/static/*
87
87
+
}
88
88
+
89
89
+
handle /media/* {
90
90
+
file_server /opt/paw/media/*
91
91
+
}
92
92
+
93
93
+
handle {
94
94
+
reverse_proxy 127.0.0.1:8000
95
95
+
}
76
96
}
77
97
```
78
98