M roles/srht/files/nginx/paste.conf => roles/srht/files/nginx/paste.conf +5 -0
@@ 17,6 17,11 @@ server {
include /etc/nginx/snippets/srht_web.conf;
}
+ location /query {
+ proxy_pass http://127.0.0.1:5111;
+ include /etc/nginx/snippets/graphql.conf;
+ }
+
location /static {
root /usr/lib/$python/site-packages/pastesrht;
expires 30d;
M roles/srht/templates/paste.ini.j2 => roles/srht/templates/paste.ini.j2 +1 -1
@@ 8,7 8,7 @@ debug-host=0.0.0.0
debug-port=5011
#
# Configures the SQLAlchemy connection string for the database.
-connection-string=postgresql://srht:{{ srht_secrets['psql_password'] }}@localhost/srht-paste
+connection-string=postgresql://srht:{{ srht_secrets['psql_password'] }}@localhost/srht-paste?sslmode=disable
#
# Set to "yes" to automatically run migrations on package upgrade.
migrate-on-upgrade=yes
M roles/srht/vars/main.yml => roles/srht/vars/main.yml +1 -1
@@ 30,7 30,7 @@ srht_services:
- meta.sr.ht-daily.timer
- meta.sr.ht-webhooks
- paste.sr.ht
- - paste.sr.ht-webhooks.service
+ - paste.sr.ht-api
- todo.sr.ht
- todo.sr.ht-api
- todo.sr.ht-lmtp