forked from CanonicalLtd/maas-docs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This removes the Fask app with app.py and adds nginx configuration. The run script, docker files, and package.json have been updated in line with this.
- Loading branch information
1 parent
74f49f9
commit 0483ced
Showing
11 changed files
with
92 additions
and
417 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 |
---|---|---|
|
@@ -23,7 +23,6 @@ venv/ | |
.envrc | ||
|
||
# Data, compiled, build or log files | ||
build/ | ||
develop-eggs/ | ||
dist/ | ||
downloads/ | ||
|
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
This file was deleted.
Oops, something went wrong.
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,55 @@ | ||
map $uri $target { | ||
include redirects.map; | ||
} | ||
|
||
server { | ||
listen 8203 default_server; | ||
listen [::]:8203 default_server; | ||
server_name _; | ||
|
||
# Log to stdout | ||
access_log /dev/stdout; | ||
error_log /dev/stderr info; | ||
|
||
root /srv; | ||
|
||
index index.html; | ||
|
||
# Show 404 page | ||
error_page 404 /404.html; | ||
|
||
# Show commit-id | ||
add_header X-Commit-ID ~COMMIT_ID~ always; | ||
add_header X-Hostname $hostname always; | ||
|
||
# Apply redirects from file | ||
if ($target) { | ||
rewrite ^ $target redirect; | ||
} | ||
|
||
# Remove index or index.html from URIs | ||
if ($request_uri ~ ^.*/index$) { | ||
rewrite ^(.*/)index$ $1 permanent; | ||
} | ||
if ($request_uri ~ ^.*/index.html$) { | ||
rewrite ^(.*/)index.html$ $1 permanent; | ||
} | ||
|
||
# Remove .html from URIs | ||
if ($request_uri ~ ^.*\.html$) { | ||
rewrite ^(.*)\.html$ $1 permanent; | ||
} | ||
|
||
# Remove slashes form URIs if it's not a directory | ||
if (!-d $request_filename) { | ||
rewrite ^/(.*)/$ /$1 permanent; | ||
} | ||
|
||
# Add slashes from URIs if it's a directory | ||
if (-d $request_filename) { | ||
rewrite ^/(.*[^/])$ /$1/ permanent; | ||
} | ||
|
||
try_files $uri $uri.html $uri/ =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
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,19 @@ | ||
~^/(|en/?|2.4.0/?)?$ /2.4/en/; | ||
~^/en/(?<page>.+)$ /2.4/en/${page}; | ||
~^/(?<version>[0-9-\._]+|devel)(/|/index)?$ /${version}/en/; | ||
~^/(?<version>[0-9-\._]+|devel)/(?<language>[a-zA-Z]+)(/index)?$ /${version}/${language}/; | ||
|
||
/devel/en/intel-rsd /devel/en/nodes-comp-hw; | ||
/2.1/en/installconfig-deploy-nodes /2.1/en/installconfig-nodes-deploy; | ||
/2.1/en/installconfig-gui /2.1/en/installconfig-webui; | ||
/2.1/en/installconfig-hwe-kernels /2.1/en/installconfig-nodes-ubuntu-kernels; | ||
/2.1/en/installconfig-kernel /2.1/en/installconfig-nodes-kernel-boot-options; | ||
/2.1/en/installconfig-server-iso /2.1/en/installconfig-iso-install; | ||
/2.1/en/installconfig-commisson-nodes /2.1/en/nodes-commission; | ||
/2.1/en/installconfig-add-nodes /2.1/en/nodes-add; | ||
/2.2/en/installconfig-nodes-hw-testing /2.2/en/nodes-hw-testing; | ||
/2.2/en/installconfig-add-nodes /2.2/en/nodes-add; | ||
/2.2/en/installconfig-commisson-nodes /2.2/en/nodes-commission; | ||
/2.2/en/installconfig-nodes-deploy /2.2/en/nodes-deploy; | ||
/2.2/en/installconfig-nodes-power-types /2.2/en/nodes-power-types; | ||
/2.2/en/intel-rsd /2.2/en/nodes-comp-hw; |
This file was deleted.
Oops, something went wrong.
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,7 +1 @@ | ||
Flask==0.12.2 | ||
PyYAML==3.12 | ||
pycountry==17.9.23 | ||
yamlordereddictloader==0.4.0 | ||
ubuntudesign.documentation-builder==1.6.0 | ||
talisker==0.9.13 | ||
gunicorn[gevent] | ||
ubuntudesign.documentation-builder==1.5.3 |
Oops, something went wrong.