Created
February 4, 2016 12:20
-
-
Save groovelab/672eed5cd3eab2e22eef to your computer and use it in GitHub Desktop.
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
$ pwd | |
/home/user/swift/SwiftBBS/SwiftBBS/SwiftBBS Server | |
$ ls -l | |
合計 116 | |
-rw-rw-r-- 1 user user 4384 2月 1 20:10 BaseRequestHandler.swift | |
-rw-rw-r-- 1 user user 2460 1月 19 00:07 BbsCommentRepository.swift | |
-rw-rw-r-- 1 user user 7505 2月 2 03:37 BbsHandler.swift | |
-rw-rw-r-- 1 user user 4596 1月 30 17:19 BbsRepository.swift | |
-rw-rw-r-- 1 user user 610 2月 2 03:37 Config.swift | |
-rw-rw-r-- 1 user user 3710 1月 29 03:48 ImageRepository.swift | |
-rw-rw-r-- 1 user user 2922 2月 2 03:37 ImageService.swift | |
-rw-rw-r-- 1 user user 806 1月 19 00:07 Info.plist | |
-rw-rw-r-- 1 user user 1426 1月 30 17:19 Pager.swift | |
drwxrwxr-x 2 user user 4096 1月 19 01:29 PerfectLibraries | |
-rw-rw-r-- 1 user user 2089 1月 29 03:48 PerfectServerModuleInit.swift | |
-rw-rw-r-- 1 user user 426 1月 30 17:19 Repository.swift | |
drwxrwxr-x 2 user user 4096 2月 4 21:07 SQLiteDBs | |
-rw-rw-r-- 1 user user 805 1月 30 17:19 SelectOption.swift | |
-rw-rw-r-- 1 user user 511 1月 19 00:07 SwiftBBS Server.h | |
drwxrwxr-x 2 user user 4096 2月 2 03:37 Templates | |
-rw-rw-r-- 1 user user 6191 1月 29 03:48 UserHandler.swift | |
-rw-rw-r-- 1 user user 4356 1月 19 00:07 UserRepository.swift | |
-rw-rw-r-- 1 user user 7842 2月 2 03:37 Validator.swift | |
-rw-rw-r-- 1 user user 3483 2月 2 03:37 extension.swift | |
srwxrwxrwx 1 user user 0 2月 4 21:07 perfect.fastcgi.sock | |
-rwxr-xr-x 1 user user 539 1月 19 00:59 perfectServerFcgi.sh | |
-rw-rw-r-- 1 user user 6 2月 4 21:07 perfectserverfcgi.pid | |
drwxrwxr-x 4 user user 4096 1月 29 03:48 webroot | |
$ nginx -v | |
nginx version: nginx/1.9.3 (Ubuntu) | |
$ cat /etc/nginx/sites-enabled/your.domain.com | |
server { | |
set $perfect_root "/home/user/swift/SwiftBBS/SwiftBBS/SwiftBBS Server"; | |
set $root "${perfect_root}/webroot"; | |
set $sock "unix:${perfect_root}/perfect.fastcgi.sock"; | |
listen 80; | |
listen [::]:80; | |
server_name your.domain.com; | |
access_log /var/log/nginx/your.domain.com.access_log; | |
error_log /var/log/nginx/your.domain.com.error_log; | |
root $root; | |
index index.html index.mustache; | |
location / { | |
try_files $uri $uri/ @perfect; | |
} | |
location = / { | |
include fastcgi_params; | |
fastcgi_pass $sock; | |
} | |
# location ~ \.mustache$ { | |
# include fastcgi_params; | |
# fastcgi_pass $sock; | |
# } | |
location @perfect { | |
include fastcgi_params; | |
fastcgi_pass $sock; | |
} | |
} | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment