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
# ドル記号の前のバックスラッシュはpanda大学習帳(https://pandanote.info/)での表示用のものです。 | |
# nginxの設定として使用する場合には、ドル記号の前のスラッシュは削除が必要です。 | |
http { | |
(中略) | |
map \$remote_addr \$allowed { | |
~aa.bb.cc. allow; | |
~2aaa:bbbb:cccc:dd: allow; | |
pp.qqq.rr.s allow; | |
127.0.0.1 allow; | |
default deny; |
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
#!/bin/bash | |
cd /opt/wiki/growi | |
npm run server:prod |
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
module.exports = { | |
NODE_ENV: 'production', | |
// FORMAT_NODE_LOG: false, | |
NODE_OPTIONS: '--max_old_space_size=768', | |
MATHJAX: 1 | |
}; |
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
[Unit] | |
Description=Growi | |
After=network.target mongod.service | |
[Service] | |
WorkingDirectory=/opt/wiki/growi | |
EnvironmentFile=/etc/sysconfig/growi | |
ExecStart=/bin/bash /opt/wiki/startgrowi.sh | |
[Install] | |
WantedBy=multi-user.target |
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
PORT=3000 | |
MODE_ENV=production | |
PASSWORD_SEED="openssl rand -base64 128 | head -1`" | |
MONGO_URI="mongodb://localhost:27017/growi" | |
FILE_UPLOAD=local | |
MATHJAX=1 |
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
[mongodb-org] | |
name=MongoDB Repository | |
baseurl=https://repo.mongodb.org/yum/amazon/2013.03/mongodb-org/4.2/x86_64/ | |
gpgcheck=1 | |
enabled=1 | |
gpgkey=https://www.mongodb.org/static/pgp/server-4.2.asc |
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
http { | |
(略) | |
server { | |
(略) | |
error_page 404 = @notfound; | |
location @notfound { | |
root (Apache httpdでDocumentRootとして設定していた値); | |
include fastcgi_params; | |
fastcgi_index index.php; | |
fastcgi_param SERVER_NAME $host; |
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
http { | |
(略) | |
server { | |
(略) | |
location /somewhere_to_restrict { | |
(前略) | |
if ($http_user_agent ~ WhileMobile) { | |
return 404; | |
} | |
(中略) |
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
http { | |
(略) | |
server { | |
(略) | |
location /somewhere_to_restrict { | |
(前略) | |
if ($allowed = deny) { | |
return 404; | |
} | |
(後略) |
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
http { | |
(前略) | |
map { | |
ab.cd.ef.ghi allow; | |
~2abc:defg:hijk:lmop: allow; | |
default deny; | |
} | |
(後略) | |
} |