mirror of
https://github.com/gradio-app/gradio.git
synced 2025-02-11 11:19:58 +08:00
192 lines
4.5 KiB
Nginx Configuration File
192 lines
4.5 KiB
Nginx Configuration File
server {
|
|
listen 80;
|
|
server_name localhost;
|
|
absolute_redirect off;
|
|
|
|
location / {
|
|
root /usr/share/nginx/html;
|
|
try_files $uri $uri/ $uri/index.html =404;
|
|
index index.html index.htm;
|
|
autoindex on;
|
|
}
|
|
|
|
location /introduction_to_blocks {
|
|
return 301 /quickstart#blocks-more-flexibility-and-control;
|
|
}
|
|
|
|
location /adding_examples_to_your_app {
|
|
return 301 /key_features#example-inputs;
|
|
}
|
|
|
|
location /embedding_gradio_demos {
|
|
return 301 /sharing_your_app#embedding-hosted-spaces;
|
|
}
|
|
|
|
location /getting_started {
|
|
return 301 /quickstart;
|
|
}
|
|
|
|
location /building_with_blocks {
|
|
return 301 /building-with-blocks;
|
|
}
|
|
|
|
location /other_tutorials {
|
|
return 301 /other-tutorials;
|
|
}
|
|
|
|
location /building_interfaces {
|
|
return 301 /building-interfaces;
|
|
}
|
|
|
|
location /tabular_data_science_and_plots {
|
|
return 301 /tabular-data-science-and-plots;
|
|
}
|
|
|
|
location /integrating_other_frameworks {
|
|
return 301 /integrating-other-frameworks;
|
|
}
|
|
|
|
location /controlling_layout {
|
|
return 301 /controlling-layout;
|
|
}
|
|
|
|
location /state_in_blocks {
|
|
return 301 /state-in-blocks;
|
|
}
|
|
|
|
location /custom_CSS_and_JS {
|
|
return 301 /custom-CSS-and-JS;
|
|
}
|
|
|
|
location /blocks_and_event_listeners {
|
|
return 301 /blocks-and-event-listeners;
|
|
}
|
|
|
|
location /using_blocks_like_functions {
|
|
return 301 /using-blocks-like-functions;
|
|
}
|
|
|
|
location /using_flagging {
|
|
return 301 /using-flagging;
|
|
}
|
|
|
|
location /named_entity_recognition {
|
|
return 301 /named-entity-recognition;
|
|
}
|
|
|
|
location /real_time_speech_recognition {
|
|
return 301 /real-time-speech-recognition;
|
|
}
|
|
|
|
location /developing_faster_with_reload_mode {
|
|
return 301 /developing-faster-with-reload-mode;
|
|
}
|
|
|
|
location /create_your_own_friends_with_a_gan {
|
|
return 301 /create-your-own-friends-with-a-gan;
|
|
}
|
|
|
|
location /setting_up_a_demo_for_maximum_performance {
|
|
return 301 /setting-up-a-demo-for-maximum-performance;
|
|
}
|
|
|
|
location /building_a_pictionary_app {
|
|
return 301 /building-a-pictionary-app;
|
|
}
|
|
|
|
location /creating_a_chatbot {
|
|
return 301 /creating-a-chatbot;
|
|
}
|
|
|
|
location /how_to_use_3D_model_component {
|
|
return 301 /how-to-use-3D-model-component;
|
|
}
|
|
|
|
location /creating_a_new_component {
|
|
return 301 /creating-a-new-component;
|
|
}
|
|
|
|
location /running_background_tasks {
|
|
return 301 /running-background-tasks;
|
|
}
|
|
|
|
location /custom_interpretations_with_blocks {
|
|
return 301 /custom-interpretations-with-blocks;
|
|
}
|
|
|
|
location /reactive_interfaces {
|
|
return 301 /reactive-interfaces;
|
|
}
|
|
|
|
location /more_on_examples_and_flagging {
|
|
return 301 /more-on-examples;
|
|
}
|
|
|
|
location /interface_state {
|
|
return 301 /interface-state;
|
|
}
|
|
|
|
location /advanced_interface_features {
|
|
return 301 /advanced-interface-features;
|
|
}
|
|
|
|
location /key_features {
|
|
return 301 /key-features;
|
|
}
|
|
|
|
location /sharing_your_app {
|
|
return 301 /sharing-your-app;
|
|
}
|
|
|
|
location /connecting_to_a_database {
|
|
return 301 /connecting-to-a-database;
|
|
}
|
|
|
|
location /creating_a_realtime_dashboard_from_google_sheets {
|
|
return 301 /creating-a-realtime-dashboard-from-google-sheets;
|
|
}
|
|
|
|
location /plot_component_for_maps {
|
|
return 301 /plot-component-for-maps;
|
|
}
|
|
|
|
location /creating_a_dashboard_from_bigquery_data {
|
|
return 301 /creating-a-dashboard-from-bigquery-data;
|
|
}
|
|
|
|
location /using_gradio_for_tabular_workflows {
|
|
return 301 /using-gradio-for-tabular-workflows;
|
|
}
|
|
|
|
location /image_classification_in_pytorch {
|
|
return 301 /image-classification-in-pytorch;
|
|
}
|
|
|
|
location /using_hugging_face_integrations {
|
|
return 301 /using-hugging-face-integrations;
|
|
}
|
|
|
|
location /Gradio_and_ONNX_on_Hugging_Face {
|
|
return 301 /Gradio-and-ONNX-on-Hugging-Face;
|
|
}
|
|
|
|
location /image_classification_with_vision_transformers {
|
|
return 301 /image-classification-with-vision-transformers;
|
|
}
|
|
|
|
location /Gradio_and_Wandb_Integration {
|
|
return 301 /Gradio-and-Wandb-Integration;
|
|
}
|
|
|
|
location /image_classification_in_tensorflow {
|
|
return 301 /image-classification-in-tensorflow;
|
|
}
|
|
|
|
error_page 404 /404.html;
|
|
error_page 500 502 503 504 /50x.html;
|
|
location = /50x.html {
|
|
root /usr/share/nginx/html;
|
|
}
|
|
|
|
}
|