Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
Clearing the code base before actualization
  • Loading branch information
Exileum committed Mar 5, 2023
1 parent 6ca475c commit dbb982c
Show file tree
Hide file tree
Showing 9 changed files with 404 additions and 134 deletions.
88 changes: 0 additions & 88 deletions CHANGES

This file was deleted.

10 changes: 3 additions & 7 deletions config.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
#include <iostream>
#include <fstream>
#include <string>
#include "config.h"
#include "misc_functions.h"

Expand Down Expand Up @@ -75,16 +74,13 @@ void config::init() {
add("schedule_interval", 3u);

// MySQL
add("mysql_db", "gazelle");
add("mysql_db", "torrentpier");
add("mysql_host", "localhost");
add("mysql_username", "");
add("mysql_password", "");

// Site communication
add("site_host", "127.0.0.1");
add("site_path", "");
add("site_password", "00000000000000000000000000000000");
add("report_password", "00000000000000000000000000000000");
// Statistical capture
add("report_password", "0000000000");

// Debugging
add("readonly", false);
Expand Down
16 changes: 11 additions & 5 deletions config.cpp.template
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
#include "config.h"

config::config() {
// Internal stuff
host = "127.0.0.1";
port = 2710;
max_connections = 512;
Expand All @@ -10,18 +11,23 @@ config::config() {
schedule_interval = 3;
max_middlemen = 5000;

// Tracker requests
announce_interval = 1800;
peers_timeout = 2700; //Announce interval * 1.5
peers_timeout = 2700; // announce interval * 1.5

// Timers
reap_peers_interval = 1800;
del_reason_lifetime = 604800;

// MySQL
mysql_db = "gazelle";
mysql_db = "torrentpier";
mysql_host = "127.0.0.1:3306";
mysql_username = "***";
mysql_password = "***";
site_password = "**********"; // MUST BE 10 CHARS
// Key to use for /report?get=stats and /report?get=user&key=<passkey> requests
report_password = "**********"; // MUST BE 10 CHARS

// Statistical capture
report_password = "**********"; // 10-chars key for /report?get=stats and /report?get=user&key=<passkey>

// Debugging
readonly = false;
}
Loading

0 comments on commit dbb982c

Please sign in to comment.