Skip to content

Commit

Permalink
Added changes to run with docker
Browse files Browse the repository at this point in the history
* Added logs to file
* Added cleaner dockerfile
* Changed config file
  • Loading branch information
PiyushXCoder committed Dec 23, 2023
1 parent 2f0896a commit fc37872
Show file tree
Hide file tree
Showing 13 changed files with 210 additions and 235 deletions.
13 changes: 13 additions & 0 deletions .config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"static_dir": "./static/",
"bind_address": "0.0.0.0",
"non_ssl_port": 8000,
"ssl_enabled": false,
"ssl_port": null,
"ssl_cert": null,
"ssl_key": null,
"logger_pattern": "%t [%a] %s %{User-Agent}i %r",
"log_file": "logs.txt",
"salt": "PUT SOME TEXT FOR SALT",
"tenor_key": "GET API KEY FROM https://tenor.com AND PASTE HERE"
}
2 changes: 2 additions & 0 deletions .dockerignore
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
/target
/actix-web-middleware-redirect-https/
/logs.txt
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/target
/etc/config.json
/localhost-key.pem
/localhost.pem
/actix-web-middleware-redirect-https/
/logs.txt
204 changes: 57 additions & 147 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit fc37872

Please sign in to comment.