diff --git a/app/app.py b/app/app.py
index b27f5ebbabc3ab56d262abc0ba03b7160723c72a..bb280f3f0e6c7677c7806619c52fc6ef60556c61 100644
--- a/app/app.py
+++ b/app/app.py
@@ -205,12 +205,12 @@ def create_app(char_limit=-1, req_limit=-1, ga_id=None, debug=False):
         return jsonify(swag)
 
     SWAGGER_URL = '/docs'  # URL for exposing Swagger UI (without trailing '/')
-    API_URL = 'http://petstore.swagger.io/v2/swagger.json'  # Our API url (can of course be a local resource)
-
+    API_URL = '/spec'
+    
     # Call factory function to create our blueprint
     swaggerui_blueprint = get_swaggerui_blueprint(
         SWAGGER_URL,
-        "",
+        API_URL,
         config={  # Swagger UI config overrides
             'app_name': "LibreTranslate",
             "spec": swag