forked from aeharding/voyager
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
14 changed files
with
140 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
# Based on the nginx config made available by Lemmy developers. | ||
# https://github.com/LemmyNet/lemmy | ||
|
||
x-logging: &default-logging | ||
driver: "json-file" | ||
options: | ||
max-size: "50m" | ||
max-file: "4" | ||
|
||
services: | ||
proxy: | ||
image: nginx:1-alpine | ||
ports: | ||
- "8536:8536" | ||
volumes: | ||
- ./nginx.conf:/etc/nginx/nginx.conf:ro,Z | ||
restart: unless-stopped | ||
logging: *default-logging | ||
|
||
lemmy: | ||
image: dessalines/lemmy:0.19.5 | ||
platform: linux/x86_64 | ||
hostname: lemmy | ||
restart: unless-stopped | ||
environment: | ||
- RUST_LOG="warn,lemmy_server=debug,lemmy_api=debug,lemmy_api_common=debug,lemmy_api_crud=debug,lemmy_apub=debug,lemmy_db_schema=debug,lemmy_db_views=debug,lemmy_db_views_actor=debug,lemmy_db_views_moderator=debug,lemmy_routes=debug,lemmy_utils=debug,lemmy_websocket=debug" | ||
- RUST_BACKTRACE=full | ||
volumes: | ||
- ./lemmy.hjson:/config/config.hjson:Z | ||
depends_on: | ||
- postgres | ||
logging: *default-logging | ||
|
||
postgres: | ||
image: postgres | ||
hostname: postgres | ||
ports: | ||
- "5433:5432" | ||
environment: | ||
- POSTGRES_USER=lemmy | ||
- POSTGRES_PASSWORD=password | ||
- POSTGRES_DB=lemmy | ||
volumes: | ||
- ./volumes/postgres:/var/lib/postgresql/data:Z | ||
restart: unless-stopped | ||
logging: *default-logging |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
{ | ||
setup: { | ||
admin_username: "voyager" | ||
admin_password: "voyagerapp" | ||
site_name: "voyager" | ||
} | ||
|
||
database: { | ||
host: postgres | ||
} | ||
|
||
hostname: "localhost" | ||
bind: "0.0.0.0" | ||
port: 8536 | ||
|
||
pictrs: { | ||
url: "http://pictrs:8080/" | ||
image_mode: None | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
# Based on the nginx config made available by Lemmy developers. | ||
# https://github.com/LemmyNet/lemmy | ||
|
||
worker_processes 1; | ||
events { | ||
worker_connections 1024; | ||
} | ||
http { | ||
upstream lemmy { | ||
# this needs to map to the lemmy (server) docker service hostname | ||
server "lemmy:8536"; | ||
} | ||
|
||
server { | ||
listen 8536; | ||
# change if needed, this is facing the public web | ||
server_name localhost; | ||
server_tokens off; | ||
|
||
# backend | ||
location ~ ^/(api|pictrs|feeds|nodeinfo|version|.well-known) { | ||
proxy_pass "http://lemmy"; | ||
# proxy common stuff | ||
proxy_http_version 1.1; | ||
proxy_set_header Upgrade $http_upgrade; | ||
proxy_set_header Connection "upgrade"; | ||
|
||
# Send actual client IP upstream | ||
proxy_set_header X-Real-IP $remote_addr; | ||
proxy_set_header Host $host; | ||
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters