====== Create Wiki Web App ======
===== Prep =====
* Follow the instructions in [[restore_wiki_procedure|Restore Wiki Procedure]] to generate a ''wiki.zip'' file.
===== Procedure =====
- [Azure Portal] Dashboard -> All resources -> Create
- [Azure Portal, Create a resource] Web App
- [Azure Portal, Create a resource] Enter the settings below.
- Wait for creation
- [Browser] Go to the [[https://tallguyracing-wiki.scm.azurewebsites.net/webssh/host|WebSSH Host]] (May need to wait for a while for everything to be created.)
- [WebSSH Host] ''cp /etc/nginx/sites-enabled/default /home/default''
- [Browser] Go to the [[https://tallguyracing-wiki.scm.azurewebsites.net/newui/fileManager|File Manager]].
- [File Manager] Make sure you are in the ''home'' directory. The directory should contain the ''site'' directory and the ''default'' file.
- [File Manager, Text Editor] Edit the ''default'' file.
- [File Manager, Text Editor] Add this before any other ''location'' section:
location ~ /(data|conf|bin|inc|vendor)/ {
deny all;
}
- [File Manager, Text Editor] Save.
- [Azure Portal] Go to Web App resource.
- [Azure Portal, TallGuyRacing-Wiki] Configuration -> General Settings -> Startup Command:
cp /home/default /etc/nginx/sites-enabled/default; service nginx restart
- [Azure Portal, TallGuyRacing-Wiki, Configuration] Save.
- [Azure Portal, TallGuyRacing-Wiki, Overview] Restart.
- [WebSSH Host] ''cat /etc/nginx/sites-enabled/default'' Ensure the changes are there.
- [Browser] Go to the [[https://tallguyracing-wiki.azurewebsites.net/|wiki home page]]. You should get "Your web app is running and waiting for your content".
- [File Manager] Go to ''/site/wwwroot''.
- [File Manager] Delete everything in that directory.
- [File Manager] Upload the ''wiki.zip'' from the [[restore_wiki_procedure|Restore Wiki Procedure]].
- Follow the additional setup & testing in [[restore_wiki_procedure|Restore Wiki Procedure]].
===== Settings =====
^ Details ^^
| Subscription | 2f06a290-7493-4b82-bb45-3387c0b6b2ec |
| Resource Group | TallGuyRacing-Wiki |
| Name | TallGuyRacing-Wiki |
| Publish | Code |
| Runtime stack | PHP 8.2 |
^ App Service Plan ^^
| Name | TallGuyRacing-Wiki-Linux |
| Operating System | Linux |
| Region | Australia East |
| SKU | Free |
| ACU | Shared infrastructure |