[gd_scene load_steps=4 format=2]
[ext_resource path="res://IndexScripted.gd" type="Script" id=1]
[ext_resource path="res://WebServerSimple.gd" type="Script" id=2]
[ext_resource path="res://WebRoot.gd" type="Script" id=3]
[node name="Main" type="Node"]
[node name="WebServerSimple" type="WebServerSimple" parent="."]
script = ExtResource( 2 )
[node name="WebRoot" type="WebRoot" parent="WebServerSimple"]
www_root_path = "res://www/"
script = ExtResource( 3 )
menu_text = "Menu:
Index page
Scripted Page
Serve folders
Serve and process files as pages
Serve And process files in a folder as pages
"
[node name="Index" type="StaticWebPage" parent="WebServerSimple/WebRoot"]
uri_segment = "/"
data = "Index page
"
[node name="IndexScripted" type="StaticWebPage" parent="WebServerSimple/WebRoot"]
uri_segment = "scripted"
data = "Index page"
script = ExtResource( 1 )
[node name="BrowsableFolderServeWebPage" type="BrowsableFolderServeWebPage" parent="WebServerSimple/WebRoot"]
uri_segment = "serve_folders"
serve_folder = "res://."
__meta__ = {
"_editor_description_": "TODO fix res://."
}
[node name="StaticWebPageFile" type="StaticWebPageFile" parent="WebServerSimple/WebRoot"]
uri_segment = "test_md"
data = "
This is an md file!
" file_path = "res://test.md" [node name="StaticWebPageFolderFiles" type="StaticWebPageFolderFiles" parent="WebServerSimple/WebRoot"] uri_segment = "md_files_folder" data = "This is md file 2
This is md file 1
This is md file 3
" dir_path = "res://md_files/" [node name="PanelContainer" type="PanelContainer" parent="."] anchor_right = 1.0 anchor_bottom = 1.0 [node name="VBoxContainer" type="VBoxContainer" parent="PanelContainer"] margin_left = 7.0 margin_top = 7.0 margin_right = 1017.0 margin_bottom = 593.0 alignment = 1 [node name="LinkButton" type="LinkButton" parent="PanelContainer/VBoxContainer"] margin_left = 391.0 margin_top = 286.0 margin_right = 619.0 margin_bottom = 300.0 size_flags_horizontal = 4 text = "Click to open http://127.0.0.1:8080/" uri = "http://127.0.0.1:8080/"