forked from rDrama/rDrama
use /d by default instead of /rDrama for consistency
parent
87d631f526
commit
a762f97734
|
@ -46,4 +46,4 @@ RUN t=$(mktemp) && wget 'https://dist.1-2.dev/imei.sh' -qO "$t" && bash "$t" &&
|
||||||
|
|
||||||
EXPOSE 80/tcp
|
EXPOSE 80/tcp
|
||||||
|
|
||||||
CMD [ "/usr/bin/supervisord", "-c", "/rDrama/supervisord.conf" ]
|
CMD [ "/usr/bin/supervisord", "-c", "/d/supervisord.conf" ]
|
||||||
|
|
|
@ -4,7 +4,7 @@ services:
|
||||||
build:
|
build:
|
||||||
context: .
|
context: .
|
||||||
volumes:
|
volumes:
|
||||||
- "./:/rDrama"
|
- "./:/d"
|
||||||
- "./nginx.conf:/etc/nginx/sites-enabled/1"
|
- "./nginx.conf:/etc/nginx/sites-enabled/1"
|
||||||
- "./nginx-serve-static.conf:/etc/nginx/includes/serve-static"
|
- "./nginx-serve-static.conf:/etc/nginx/includes/serve-static"
|
||||||
- "./nginx-headers.conf:/etc/nginx/includes/headers"
|
- "./nginx-headers.conf:/etc/nginx/includes/headers"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
export FLASK_APP='/rDrama/files/cli:app'
|
export FLASK_APP='/d/files/cli:app'
|
||||||
export SITE='localhost'
|
export SITE='localhost'
|
||||||
export SITE_NAME='rDrama'
|
export SITE_NAME='rDrama'
|
||||||
export SECRET_KEY='blahblahblah'
|
export SECRET_KEY='blahblahblah'
|
||||||
|
|
18
nginx.conf
18
nginx.conf
|
@ -29,18 +29,18 @@ server {
|
||||||
include includes/headers;
|
include includes/headers;
|
||||||
}
|
}
|
||||||
location =/offline.html {
|
location =/offline.html {
|
||||||
alias /rDrama/files/templates/errors/offline.html;
|
alias /d/files/templates/errors/offline.html;
|
||||||
include includes/headers;
|
include includes/headers;
|
||||||
}
|
}
|
||||||
error_page 404 = /404.html;
|
error_page 404 = /404.html;
|
||||||
location =/404.html {
|
location =/404.html {
|
||||||
alias /rDrama/files/templates/errors/rDrama/404.html;
|
alias /d/files/templates/errors/rDrama/404.html;
|
||||||
include includes/headers;
|
include includes/headers;
|
||||||
add_header Cache-Control "no-store";
|
add_header Cache-Control "no-store";
|
||||||
}
|
}
|
||||||
error_page 502 = /502.html;
|
error_page 502 = /502.html;
|
||||||
location =/502.html {
|
location =/502.html {
|
||||||
alias /rDrama/files/templates/errors/rDrama/502.html;
|
alias /d/files/templates/errors/rDrama/502.html;
|
||||||
include includes/headers;
|
include includes/headers;
|
||||||
add_header Cache-Control "no-store";
|
add_header Cache-Control "no-store";
|
||||||
}
|
}
|
||||||
|
@ -79,28 +79,28 @@ server {
|
||||||
}
|
}
|
||||||
|
|
||||||
location /assets/ {
|
location /assets/ {
|
||||||
alias /rDrama/files/assets/;
|
alias /d/files/assets/;
|
||||||
include includes/serve-static;
|
include includes/serve-static;
|
||||||
}
|
}
|
||||||
location /i/ {
|
location /i/ {
|
||||||
alias /rDrama/files/assets/images/;
|
alias /d/files/assets/images/;
|
||||||
include includes/serve-static;
|
include includes/serve-static;
|
||||||
}
|
}
|
||||||
location /e/ {
|
location /e/ {
|
||||||
alias /rDrama/files/assets/images/emojis/;
|
alias /d/files/assets/images/emojis/;
|
||||||
include includes/serve-static;
|
include includes/serve-static;
|
||||||
}
|
}
|
||||||
|
|
||||||
location =/robots.txt {
|
location =/robots.txt {
|
||||||
alias /rDrama/files/assets/robots.txt;
|
alias /d/files/assets/robots.txt;
|
||||||
include includes/serve-static;
|
include includes/serve-static;
|
||||||
}
|
}
|
||||||
location =/icon.webp {
|
location =/icon.webp {
|
||||||
alias /rDrama/files/assets/images/rDrama/icon.webp;
|
alias /d/files/assets/images/rDrama/icon.webp;
|
||||||
include includes/serve-static;
|
include includes/serve-static;
|
||||||
}
|
}
|
||||||
location =/favicon.ico {
|
location =/favicon.ico {
|
||||||
alias /rDrama/files/assets/images/rDrama/icon.webp;
|
alias /d/files/assets/images/rDrama/icon.webp;
|
||||||
include includes/serve-static;
|
include includes/serve-static;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,7 +7,7 @@ This code runs https://rdrama.net and https://watchpeopledie.tv
|
||||||
2- Run the following commands in the terminal:
|
2- Run the following commands in the terminal:
|
||||||
|
|
||||||
```
|
```
|
||||||
git clone https://fsdfsd.net/rDrama/rDrama.git
|
git clone https://fsdfsd.net/rDrama/rDrama.git /d
|
||||||
|
|
||||||
cd rDrama
|
cd rDrama
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
cd /rDrama
|
cd /d
|
||||||
. ./.env
|
. ./.env
|
||||||
export DATABASE_URL='postgresql://postgres@postgres:5432'
|
export DATABASE_URL='postgresql://postgres@postgres:5432'
|
||||||
export REDIS_URL='redis://redis:6379'
|
export REDIS_URL='redis://redis:6379'
|
||||||
|
|
|
@ -4,7 +4,7 @@ pidfile=/tmp/supervisord.pid
|
||||||
logfile=/tmp/supervisord.log
|
logfile=/tmp/supervisord.log
|
||||||
|
|
||||||
[program:rDrama]
|
[program:rDrama]
|
||||||
directory=/rDrama
|
directory=/d
|
||||||
command=sh scripts/startup_docker.sh
|
command=sh scripts/startup_docker.sh
|
||||||
stdout_logfile=/dev/stdout
|
stdout_logfile=/dev/stdout
|
||||||
stdout_logfile_maxbytes=0
|
stdout_logfile_maxbytes=0
|
||||||
|
|
Loading…
Reference in New Issue