Archived arm64 docker images and added an nginx config for websockets
This commit is contained in:
parent
ccfd797094
commit
1a50fe8558
@ -18,13 +18,13 @@ services:
|
|||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:8280:80"
|
- "127.0.0.1:8280:80"
|
||||||
environment:
|
environment:
|
||||||
- SAFETWITCH_BACKEND_DOMAIN=twitch-api.seitan-ayoub.lol
|
- SAFETWITCH_BACKEND_DOMAIN=changeme
|
||||||
- SAFETWITCH_INSTANCE_DOMAIN=twitch.seitan-ayoub.lol
|
- SAFETWITCH_INSTANCE_DOMAIN=changeme
|
||||||
- SAFETWITCH_HTTPS=true
|
- SAFETWITCH_HTTPS=true
|
||||||
- SAFETWITCH_DEFAULT_LOCALE=en
|
- SAFETWITCH_DEFAULT_LOCALE=en
|
||||||
- SAFETWITCH_FALLBACK_LOCALE=en
|
- SAFETWITCH_FALLBACK_LOCALE=en
|
||||||
networks:
|
# networks:
|
||||||
- nginx_network
|
#- nginx_network
|
||||||
|
|
||||||
safetwitch-backend:
|
safetwitch-backend:
|
||||||
container_name: safetwitch-backend
|
container_name: safetwitch-backend
|
||||||
@ -38,13 +38,13 @@ services:
|
|||||||
restart: always
|
restart: always
|
||||||
image: safetwitch-backend:arm64
|
image: safetwitch-backend:arm64
|
||||||
platform: "linux/arm64"
|
platform: "linux/arm64"
|
||||||
networks:
|
# networks:
|
||||||
- nginx_network
|
#- nginx_network
|
||||||
ports:
|
ports:
|
||||||
- "127.0.0.1:7100:7000"
|
- "127.0.0.1:7100:7000"
|
||||||
environment:
|
environment:
|
||||||
- PORT=7000
|
- PORT=7000
|
||||||
- URL=https://twitch-api.seitan-ayoub.lol
|
- URL=changeme
|
||||||
networks:
|
#networks:
|
||||||
nginx_network:
|
# nginx_network:
|
||||||
external: true
|
#external: true #use if you run nginx in a docker container, make sure nginx is in the same network
|
||||||
|
BIN
safetwitch-arm64.tar
Normal file
BIN
safetwitch-arm64.tar
Normal file
Binary file not shown.
BIN
safetwitch-backend-arm64.tar
Normal file
BIN
safetwitch-backend-arm64.tar
Normal file
Binary file not shown.
26
seitan-nginx-twitchapi.conf
Normal file
26
seitan-nginx-twitchapi.conf
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
server {
|
||||||
|
listen 443 ssl;
|
||||||
|
|
||||||
|
|
||||||
|
server_name twitch-api.seitan-ayoub.lol;
|
||||||
|
ssl_certificate /etc/nginx/certs/_.seitan-ayoub.lol.crt;
|
||||||
|
ssl_certificate_key /etc/nginx/certs/_.seitan-ayoub.lol.key;
|
||||||
|
ssl_protocols TLSv1 TLSv1.1 TLSv1.2 TLSv1.3;
|
||||||
|
set $backend "http://safetwitch-backend:7000";
|
||||||
|
location /{
|
||||||
|
|
||||||
|
proxy_pass $backend;
|
||||||
|
proxy_set_header X-Forwarded-For $proxy_add_x_forwarded_for;
|
||||||
|
proxy_set_header Host $host;
|
||||||
|
proxy_set_header Upgrade $http_upgrade;
|
||||||
|
proxy_set_header Connection "upgrade";
|
||||||
|
proxy_http_version 1.1;
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
upstream chat {
|
||||||
|
ip_hash;
|
||||||
|
server safetwitch-backend:7000;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user