Free and open source ticket system written in python

add Caddyfile

+21 -1
+21 -1
docs/docker_compose_deployment.md
··· 37 37 For this we slightly modify the deployment volumes: 38 38 39 39 ```yaml 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 + 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 + } 78 + ``` 79 + 80 + #### Example Caddyfile 81 + 82 + ``` 83 + example.com { 84 + 85 + handle /static/* { 86 + file_server /opt/paw/static/* 87 + } 88 + 89 + handle /media/* { 90 + file_server /opt/paw/media/* 91 + } 92 + 93 + handle { 94 + reverse_proxy 127.0.0.1:8000 95 + } 76 96 } 77 97 ``` 78 98