Skip to content

Commit

Permalink
Update for release
Browse files Browse the repository at this point in the history
  • Loading branch information
cesxhin committed Oct 16, 2023
1 parent 467c9b8 commit 446abf6
Show file tree
Hide file tree
Showing 4 changed files with 44 additions and 13 deletions.
20 changes: 11 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -321,7 +321,7 @@ Avviare con `http-server '/root/anime'` come avvio della macchina
Oppure si può usare questa immagine: `danjellz/http-server`, la cartella che viene esposta è la seguente: `/public`

## 🎭Tor Proxy
Questo progetto verrà utilizzato per fare proxy attraverso tor per evitare che venga tracciato e se dovesse bloccare per le troppe richieste viene riavviato.
Questo progetto verrà utilizzato per fare proxy attraverso tor per evitare che venga tracciato e se dovesse bloccare per le troppe richieste viene riavviato con un ip sempre diverso dal precedente.
### Information general:
> Note: `not require` volume mounted on Docker
Expand All @@ -333,13 +333,15 @@ Questo progetto verrà utilizzato per fare proxy attraverso tor per evitare che
### Variabili globali richiesti:
```sh
example:
#--- rabbit ---
USERNAME_RABBIT: "guest" #guest [default]
PASSWORD_RABBIT: "guest" #guest [default]
ADDRESS_RABBIT: "localhost" #localhost [default]

#--- General ---
EXPECTED_ADDRESS: "127.0.0.1" #127.0.0.1 [default][require]
REPLICAS: 10 #10 [default][require]
EXCHANGE_NAME: "example_exchange" #Cesxhin.AnimeManga.Domain.DTO:ProxyDTO [default][require]
ADDRESS_RABBIT: "localhost" #"localhost" [default]
PORT_RABBIT: 9999 #5672 [default]
USERNAME_RABBIT: "guest" #"guest" [default]
PASSWORD_RABBIT: "guest" #"guest" [default]
EXCHANGE_NAME: "example_exchange" [required]
QUEUE_RABBIT: "example_queue" #"animemanga-tor-proxy" [default]
REPLICAS: 4 #15 [default]
EXPECTED_ADDRESS: #ADDRESS_RABBIT [default]
START_PORT: 9999 #8000 [default]
PROXY_PATH: "/path/example" #"proxy.txt" [default]
```
1 change: 0 additions & 1 deletion env/web.env
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,4 @@ NUXT_PUBLIC_SOCKET_BASE="ws://<ip server-room>:5001/room"
NUXT_PUBLIC_HTTP_BASE="http://<ip http-server>:5002"
NUXT_PUBLIC_BASE_PATH="/public"
NUXT_PUBLIC_WEB_BASE="http://<your-ip>:3000 || DNS"
NUXT_PUBLIC_AUTH_ORIGIN="http://<your-ip>:3000"
NUXT_SECRET="yoursecret"
34 changes: 32 additions & 2 deletions init/database.sql
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,21 @@ CREATE TABLE episodeRegister
episodeHash varchar(64)
);

CREATE TABLE episodeQueue(
videoId varchar(250) not null,
url text,
nameCfg text not null,
timeRequest bigint not null,
PRIMARY KEY(videoId, nameCfg, url)
);

CREATE TABLE episodeBlacklist(
videoId varchar(250) not null,
url text not null,
nameCfg text not null,
PRIMARY KEY(videoId, url)
);

/*book*/
CREATE TABLE chapter
(
Expand All @@ -50,12 +65,27 @@ CREATE TABLE chapterRegister
chapterHash varchar[]
);

/* account */
CREATE TABLE chapterQueue(
nameManga varchar(250) not null,
url text,
nameCfg text not null,
timeRequest bigint not null,
PRIMARY KEY(nameManga, nameCfg, url)
);

CREATE TABLE chapterBlacklist(
nameManga varchar(250) not null,
url text not null,
nameCfg text not null,
PRIMARY KEY(nameManga, url)
);

/* account */
CREATE TABLE account
(
username varchar(250) primary key not null,
password varchar(500) not null
password varchar(500) not null,
role integer default 0
);

CREATE TABLE whitelist
Expand Down
2 changes: 1 addition & 1 deletion management.sh
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ do

if [ "$arg" == "down" ]
then
sudo docker compose -f $FILE_COMPOSE down
sudo docker compose -f $FILE_COMPOSE down --timeout 120
exit 1
fi

Expand Down

0 comments on commit 446abf6

Please sign in to comment.