Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
M
mailinabox
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
mailinabox
Commits
5b82bbb5
Commit
5b82bbb5
authored
Sep 01, 2013
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
preliminary script for nginx
parent
5d26c490
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
47 additions
and
0 deletions
+47
-0
nginx.conf
conf/nginx.conf
+30
-0
web.sh
scripts/web.sh
+17
-0
No files found.
conf/nginx.conf
0 → 100644
View file @
5b82bbb5
server
{
listen
80
;
listen
[::]:80
default_server
ipv6only=on
;
listen
443
ssl
;
server_name
$PUBLIC_HOSTNAME
;
ssl_certificate
$STORAGE_ROOT
/ssl/ssl_certificate.pem
;
ssl_certificate_key
$STORAGE_ROOT
/ssl/ssl_private_key.pem
;
root
$STORAGE_ROOT
/www/static
;
index
index.html
index.htm
;
location
/
{
# First attempt to serve request as file, then
# as directory, then fall back to displaying a 404.
try_files
$uri
$uri
/
/index.html
;
}
#error_page 404 /404.html;
# redirect server error pages to the static page /50x.html
#
#error_page 500 502 503 504 /50x.html;
#location = /50x.html {
# root /usr/share/nginx/html;
#}
}
scripts/web.sh
0 → 100755
View file @
5b82bbb5
# HTTP: Turn on a web server serving static files
#################################################
apt-get
install
-q
-y
nginx
rm
-f
/etc/nginx/sites-enabled/default.conf
cat
conf/nginx.conf
\
|
sed
"s/
\$
STORAGE_ROOT/
$STORAGE_ROOT
/g"
\
|
sed
"s/
\$
PUBLIC_HOSTNAME/
$PUBLIC_HOSTNAME
/g"
\
>
/etc/nginx/sites-enabled/local.conf
service nginx reload
ufw allow http
ufw allow https
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment