-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added README. added log4j2. added cleaner code version
- Loading branch information
1 parent
0e330f8
commit f36a0c1
Showing
20 changed files
with
704 additions
and
456 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 |
---|---|---|
@@ -0,0 1,58 @@ | ||
# nginx Java = nginj | ||
|
||
FastCGI implemention in Java with at runtime .java file compilation. | ||
|
||
|
||
## Dependencies | ||
- openjdk-8-jdk | ||
|
||
## Configuration | ||
### NGINX | ||
``` | ||
location ~ \.java$ { | ||
include /etc/nginx/fastcgi_params; | ||
fastcgi_pass 127.0.0.1:9500; | ||
} | ||
``` | ||
--- | ||
|
||
### NGINJ | ||
|
||
``` | ||
# | ||
# rootDirectory: directory to look for .java files | ||
# | ||
rootDirectory=/var/www | ||
# | ||
# tmpDir: temporary directory for .class files | ||
# | ||
tmpDirectory=/tmp/nginj | ||
# | ||
# host: address to listen | ||
# | ||
host=127.0.0.1 | ||
# | ||
# port: port to listen | ||
# | ||
port=9500 | ||
# | ||
# treads: number of threads accepting and handing requests | ||
# | ||
threads=10 | ||
``` | ||
|
||
## Build .deb | ||
``` | ||
mvn clean package \ | ||
&& mv target/nginj-jar-with-dependencies.jar src/main/deb/usr/lib/nginj/nginj.jar \ | ||
&& cd src/main/deb \ | ||
&& tar -czf data.tar.gz usr/ var/ etc/ \ | ||
&& tar -czf control.tar.gz prerm postinst postrm control conffiles \ | ||
&& ar r nginj.deb debian-binary control.tar.gz data.tar.gz \ | ||
&& rm data.tar.gz control.tar.gz \ | ||
&& cd - | ||
``` |
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
25 changes: 17 additions & 8 deletions
25
src/main/java/io/github/puddingspudding/fcgi/package-info.java
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,10 1,19 @@ | ||
/* | ||
* Copyright 2017 Philip Strecker | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
/** | ||
* Created by pudding on 26.03.16. | ||
* asd | ||
* asd | ||
* a | ||
* sda | ||
* das | ||
* d | ||
* Classes for FCGI. | ||
*/ | ||
package io.github.puddingspudding.fcgi; | ||
package io.github.puddingspudding.fcgi; |
251 changes: 0 additions & 251 deletions
251
src/main/java/io/github/puddingspudding/fcgi/server/DefaultServer.java
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.