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
b4e7d6ba
Commit
b4e7d6ba
authored
Sep 08, 2013
by
Joshua Tauberer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
create a basic hello world page on http/https
parent
b770c537
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
0 deletions
+14
-0
www_default.html
conf/www_default.html
+9
-0
web.sh
scripts/web.sh
+5
-0
No files found.
conf/www_default.html
0 → 100644
View file @
b4e7d6ba
<html>
<head>
<title>
this is a mailinabox
</title>
</head>
<body>
<h1>
this is a mailinabox
</h1>
<p><a
href=
"https://github.com/tauberer/mailinabox"
>
https://github.com/tauberer/mailinabox
</a></p>
</body>
</html>
scripts/web.sh
View file @
b4e7d6ba
...
@@ -9,12 +9,17 @@ rm -f /etc/nginx/sites-enabled/default
...
@@ -9,12 +9,17 @@ rm -f /etc/nginx/sites-enabled/default
STORAGE_ROOT_ESC
=
$(
echo
$STORAGE_ROOT
|sed
's/[\\\/&]/\\&/g'
)
STORAGE_ROOT_ESC
=
$(
echo
$STORAGE_ROOT
|sed
's/[\\\/&]/\\&/g'
)
PUBLIC_HOSTNAME_ESC
=
$(
echo
$PUBLIC_HOSTNAME
|sed
's/[\\\/&]/\\&/g'
)
PUBLIC_HOSTNAME_ESC
=
$(
echo
$PUBLIC_HOSTNAME
|sed
's/[\\\/&]/\\&/g'
)
# copy in the nginx configuration file and substitute some
# variables
cat
conf/nginx.conf
\
cat
conf/nginx.conf
\
|
sed
"s/
\$
STORAGE_ROOT/
$STORAGE_ROOT_ESC
/g"
\
|
sed
"s/
\$
STORAGE_ROOT/
$STORAGE_ROOT_ESC
/g"
\
|
sed
"s/
\$
PUBLIC_HOSTNAME/
$PUBLIC_HOSTNAME_ESC
/g"
\
|
sed
"s/
\$
PUBLIC_HOSTNAME/
$PUBLIC_HOSTNAME_ESC
/g"
\
>
/etc/nginx/conf.d/local.conf
>
/etc/nginx/conf.d/local.conf
# make a default homepage
mkdir
-p
$STORAGE_ROOT
/www/static
mkdir
-p
$STORAGE_ROOT
/www/static
cp
conf/www_default.html
$STORAGE_ROOT
/www/static/index.html
chown
-R
$STORAGE_USER
$STORAGE_ROOT
/www/static/index.html
service nginx restart
service nginx restart
...
...
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