-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Project Refresh #2 On Linux this time. Cleaned, redacted, organized, added config and new comments to sample env file to make multiple configurations easier. Adds new setting for future SELinux and SCM res minify path fix. Revised installation document. Added similar instructions from the Mac pathway in a more concise fashion, possibly as a better convention for the document later. Possibly more security conscious now from using login path, not sure.. Found more project names to update. Added quick sample API doc, as was also useful for making this commit. Added some SELinux files for at least better running on dev systems. Leftover CSR readability change in the index. Revised nginx root conf. May need converging or splitting work so this file has answers for all OSes, like comments for each as done in the site config with the lines, but maybe it helps clean up others from a cleaner Linux perspective instead. Site conf did some nice deduplication in the same inspiration that I want for root conf, except for the log directives that I added with the same refactoring reasoning, trying to edit system-wide files as little as possible. Nearly forgot the default test user password, but added helpful comment once I did.
- Loading branch information
Showing
9 changed files
with
127 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,24 +1,35 @@ | ||
[WEB] | ||
minify=true | ||
enableTests=false | ||
cacheFolderRootPath=/tmp | ||
|
||
[DATABASE] | ||
DBMS=mysql | ||
DBHOST=localhost | ||
DBPORT=3306 | ||
DBNAME=tingle | ||
DBUSER=tingle | ||
DBPASSWD="" | ||
# Quotes at least around the password field to allow for special characters. | ||
PREFIX= | ||
|
||
; For TCP/IP network-style connections | ||
;DBHOST=127.0.0.1 | ||
;DBPORT=3306 | ||
; For Linux-style local filesystem socket connections | ||
;DBHOST=localhost | ||
;DBSOCKET=/var/lib/mysql/mysql.sock | ||
|
||
; Quotes to allow special characters in values. | ||
; Escape double-quote characters using a backslash. | ||
DBPASSWD="" | ||
|
||
[SECURITY] | ||
LOST_PASSWORD_RANDOM_GENERATOR_STRENGTH=MEDIUM | ||
|
||
[MAIL] | ||
mailEnabled=false | ||
server="smtp.server.com" | ||
server="" | ||
port=465 | ||
username="[email protected]" | ||
username="" | ||
password="" | ||
replyToAddress="[email protected]" | ||
replyToAddress="" | ||
replyToName="Tingle" | ||
lostPasswordSubject="Tingle - Password Reset" | ||
lostPasswordBodyTemplateFilePath="content/lostPasswordEmailBodyTemplate.txt" | ||
[WEB] | ||
minify=true | ||
enableTests=false |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
module my-nginx 1.0; | ||
|
||
require { | ||
type httpd_t; | ||
type dosfs_t; | ||
class file { getattr open read }; | ||
} | ||
|
||
#============= httpd_t ============== | ||
|
||
allow httpd_t dosfs_t:file read; | ||
allow httpd_t dosfs_t:file { getattr open }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
# Sample Client Flow | ||
TODO: sort.. | ||
## Page Load | ||
|
||
https://.../res.php?type=javascript | ||
https://.../res.php?type=css | ||
|
||
https://.../ajax.php?command=get_container&game=BotW | ||
|
||
https://.../ajax.php?command=get_container_name&game=BotW | ||
https://.../ajax.php?command=get_categories&game=19 | ||
https://.../ajax.php?command=get_map&game=19 | ||
https://.../ajax.php?command=get_category_tree&game=19 | ||
https://.../ajax.php?command=get_games | ||
|
||
https://.../ajax.php?command=get_markers&game=19 | ||
|
||
## Login | ||
https://.../ajax.php?command=login | ||
|
||
## User Load | ||
https://.../ajax.php?command=get_user_info | ||
https://.../ajax.php?command=get_changelog&sinceVersion=0.0.0 | ||
https://.../ajax.php?command=get_user_completed_markers&game=19&userId=1 | ||
|
||
## Logout | ||
https://.../ajax.php?command=logout |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters