Skip to content

Commit

Permalink
clean code
Browse files Browse the repository at this point in the history
  • Loading branch information
pgq committed Jun 19, 2017
1 parent b0d8a71 commit 6c5b5de
Show file tree
Hide file tree
Showing 15 changed files with 402 additions and 315 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,6 @@
/bin/
/cloc-1.72.pl
/profile
html
data.pdf
fancy.pid
fancy.log
Binary file removed blog/img/Fancy vs. Nginx1.pdf
Binary file not shown.
Binary file removed blog/img/Fancy vs. Nginx4.pdf
Binary file not shown.
Binary file removed blog/img/nginx.png
Binary file not shown.
Binary file removed blog/img/pefermence1.png
Binary file not shown.
Binary file removed blog/img/pefermence4.png
Binary file not shown.
Binary file removed blog/img/tcp.png
Binary file not shown.
Binary file removed blog/img/wireshark.png
Binary file not shown.
Binary file removed blog/img/wireshark2.png
Binary file not shown.
66 changes: 0 additions & 66 deletions blog/pefermence.md

This file was deleted.

53 changes: 0 additions & 53 deletions blog/problems_encountered.md

This file was deleted.

4 changes: 2 additions & 2 deletions config.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@

#include "palloc.h"

#define FANCY_PREFIX "/home/frank/ClionProjects/fancy/html/"
#define FANCY_PID_FILE FANCY_PREFIX"/fancy.pid"
#define FANCY_PREFIX "/home/frank/ClionProjects/fancy/"
#define FANCY_PID_FILE FANCY_PREFIX"fancy.pid"
#define FANCY_CONFIG_FILE FANCY_PREFIX"fancy.conf"

void config(const char *path);
Expand Down
15 changes: 7 additions & 8 deletions fancy.conf
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ master_process off;
worker_processes 3;

log_level debug;
log_path stdout; #/home/frank/ClionProjects/fancy/html/fancy.log;
log_path stdout;#/home/frank/ClionProjects/fancy/html/fancy.log;

events {
worker_connections 10240;
Expand All @@ -18,14 +18,13 @@ server {

keep_alive_requests 500;

accept_defer 5;
accept_defer 5;

location /fancy/ {
root /home/frank/ClionProjects/fancy/html/;
location /html/ {
root /home/frank/ClionProjects/fancy/;
index index.html index.htm ;
}

location / {
proxy_pass 127.0.0.1:5601;
}
location / {
proxy_pass 127.0.0.1:4000;
}
}
Loading

0 comments on commit 6c5b5de

Please sign in to comment.