Commit graph

50 commits

Author SHA1 Message Date
Humberto Rocha
d6cdcb1d83
Wait setup to complete before starting web and stator containers (#611) 2023-07-17 09:31:21 -06:00
Andrew Godwin
82a9c18205 Fixed #593: Add some docs for TAKAHE_CSRF_HOSTS 2023-07-02 20:41:38 +01:00
Andrew Godwin
5297b98273 Include psql in the docker image 2023-05-13 11:38:32 -06:00
Andrew Godwin
758e6633c4 Fix image proxy headers
Fixes #536
2023-03-11 11:06:44 -07:00
Colin Schlueter
6fb9a5ea96
Fix nameserver substitution for IPv6 resolvers (#516) 2023-02-20 09:49:53 -07:00
Andrew Godwin
aa592b496a Switch from hardcoding quad9 to reading resolv.conf 2023-02-19 10:49:06 -07:00
Corry Haines
93c0af992b
Templatize robots.txt (#478) 2023-01-29 12:27:07 -07:00
Humberto Rocha
a2e8d05349
Add missing trailing / to the copy command (#464) 2023-01-20 17:25:43 -07:00
Corry Haines
46947279b0
Attach user identification headers to response (#453)
Add X-Takahe-User and X-Takahe-User-Identity headers to response, when available, to allow for better Nginx log enrichment.

Also drop these headers in Nginx so they aren't sent into the world. They probably aren't dangerous since they identfy the users _to themselves_ but strip it for now, just in case.
2023-01-20 17:20:14 -07:00
Corry Haines
ec85060df8
Organize nginx config files (#449) 2023-01-19 13:11:54 -07:00
James Moore
a7be3b2072
Nginx refactor for #401 (#442) 2023-01-18 22:04:30 -07:00
Andrew Godwin
f69c7304c1 Fix docker build with new domain check 2023-01-14 12:24:15 -07:00
Michael Manfre
73adcadf27
Include an /etc/mime.types file to correct gaps from mimetypes package (#348) 2023-01-02 16:32:41 -07:00
Tyler Kennedy
7eff751224
A quick robots.txt to tell bots to stop crawling tags. (#321) 2022-12-30 10:14:12 -07:00
Kromonos
d525a2f465
Quick fix for TAKAHE_SECRET_KEY in Dockerfile (#309) 2022-12-28 21:56:11 -07:00
Corry Haines
296780d5cc
Use cache-busting URLs for proxied files (#294)
Migrates (in a backwards-compatible way) from `/proxy/identity_image/271/` to `/proxy/identity_image/271/f5d8e72f2b/`.
dently).
2022-12-28 11:39:40 -07:00
Rui Carmo
029e51c8fe
More aggressive caching (#288) 2022-12-27 11:56:30 -07:00
Kromonos
b170cd2850
Add docker healthcheck feature & move collectstatic into container (#276) 2022-12-27 11:39:18 -07:00
Corry Haines
b7b0b0dad4
Add cache-control header for static assets (#281) 2022-12-27 11:25:18 -07:00
Andrew Godwin
218aabc597 Stop no-store headers getting through for the proxy 2022-12-26 20:53:50 -07:00
Corry Haines
31187c99b2
Quality of life (#266)
Support gunicorn autoreload on DEBUG
Pass docker postgres port to host
Add some typing to posts.py
2022-12-26 10:42:02 -07:00
Corry Haines
a590427160
Render the Nginx config to a separate file (#273)
When writing the cache size to nginx config, write it to a
separate file so it doesn't confuse git status/commit.

By using a rendered file, we can ignore the output completely.
2022-12-26 10:40:37 -07:00
Andrew Godwin
74edeef3f5 Only put proxy_cache where we want it 2022-12-22 05:09:33 +00:00
Tyler Kennedy
7e5b5dc4e4
Various UX tweaks and front end fixes. (#230) 2022-12-22 21:28:28 +00:00
Andrew Godwin
6453c170f7 Fall back to static serving if not collected
Fixes #218
2022-12-22 01:46:14 +00:00
Andrew Godwin
b6b5a623c9 Update link in compose file
Fixes #212
2022-12-20 11:50:40 +00:00
Andrew Godwin
c7409b3500 Get nginx to proxy stuff for us! 2022-12-19 07:26:38 +00:00
Andrew Godwin
a26263fb05 Nginx now bundled in image, does media caching
Also serves static files. Old media caching removed.
2022-12-19 04:26:42 +00:00
Tyler Kennedy
cfa97b9740
Mitra Fixes (#207)
Don't send a list when populating Accept header. This seems to work fine on Mastodon and friends, and fixes a bug with the Mitra server until resolved upstream.
2022-12-19 11:21:04 +00:00
Andrew Godwin
4a28e1708e Make the collectstatic hack slightly better 2022-12-16 19:51:19 -07:00
Michael Manfre
134bacd7ba
Update docker to python 3.11.1 (#174) 2022-12-15 16:36:43 -07:00
Andrew Godwin
c5f52581c9 Fix collectstatic 2022-12-15 12:30:23 -07:00
Dan Watson
3e313800fc
Don't cache pip packages when building docker image (#131) 2022-12-06 09:49:50 -07:00
TAKAHASHI Shuuji
dd8e823d2f
Add missing dependencies for the arm64 build (#111) 2022-12-05 10:37:53 -07:00
Paolo Melchiorre
6cf344360a
Optimized deb packages installed in Docker (#106) 2022-12-04 18:31:32 -07:00
Humberto Rocha
f5809ea4a1
Fix docker image build proccess waiting on user input (#81) 2022-11-30 10:39:50 -07:00
Corry Haines
9e99a6bba1
Modify docker FROM to allow mirror insertion (#69) 2022-11-27 23:20:26 -07:00
Andrew Godwin
bc54e1856c Update docker-compose and instructions 2022-11-27 10:54:01 -07:00
Andrew Godwin
a3f45a001b Bit of a settings fixup to make it work with t.s 2022-11-26 11:33:33 -07:00
Tyler Kennedy
c758858392
Simplified settings
Migrated settings to typed pydantic settings
2022-11-26 10:04:04 -07:00
TAKAHASHI Shuuji
cb26d78d36
Use repository root as build context in docker-compose
This fixes the issue where `docker-compose` fails to build takahe:latest container. The cause of issue is the build context for docker compose is different from the one of `docker build`. Currently, `make image` uses the repository root as a build context while `make compose_up` will use `docker/` directory as a build context. That's why docker-compose couldn't find the required files during building.
2022-11-23 13:06:17 -07:00
Andrew Godwin
c8ad22a704 Add big warning to compose file 2022-11-23 11:29:32 -07:00
Andrew Godwin
2c5b96e264 Switch docker-compose to dev settings 2022-11-23 00:01:18 -07:00
Andrew Godwin
45c7e0a38c Rework dockerfile and compose to separate migrations 2022-11-21 16:26:53 -07:00
Josh Dick
f0cf584c56
Add missing Debian build dependencies for Python 3 dependencies (#16)
ARM processor differences
2022-11-20 11:45:50 -07:00
Daniel Quinn
a43ccde8d9
Document Docker development (#21)
This also mounts the project root at /takahe/ to make development possible.
2022-11-20 11:17:09 -07:00
Humberto Rocha
fac144cee0
Fix up docker-compose 2022-11-19 21:53:38 -07:00
Andrew Godwin
2142677b01 A few more tweaks for an initial deploy 2022-11-19 10:20:13 -07:00
Andrew Godwin
8019311490 Deployment re-jiggling 2022-11-18 17:24:43 -07:00
Andrew Godwin
143a4a6e8c Start some settings work 2022-11-12 22:10:06 -07:00