{"id":228,"date":"2023-08-09T04:36:17","date_gmt":"2023-08-09T04:36:17","guid":{"rendered":"https:\/\/gsitlibrary.com\/docwebapi\/docs\/web-api-gsit-library\/web-api-testing-137\/change-value-in-appsettings-json\/"},"modified":"2023-08-09T16:39:13","modified_gmt":"2023-08-09T16:39:13","slug":"change-value-in-appsettings-json-228","status":"publish","type":"docs","link":"https:\/\/gsitlibrary.com\/docwebapi\/docs\/web-api-gsit-library\/web-api-testing-137\/change-value-in-appsettings-json-228\/","title":{"rendered":"Change Value in appsettings.json"},"content":{"rendered":"\n<ol class=\"wp-block-list\">\n<li>Open file appsettings.json in the root of CRM Project<\/li>\n\n\n\n<li>Enter this section:<br><code>\"JWT\": {<br>\"ValidAudience\": \"http:\/\/localhost:4200\",<br>\"ValidIssuer\": \"http:\/\/localhost:61955\",<br>\"Secret\": \"<mark style=\"background-color:rgba(0, 0, 0, 0)\" class=\"has-inline-color has-palette-color-2-color\">xjy19^.|U6g9{rQC#,O[>>!q1Y@hmV>dGB9K1Cv+}xNHx9Lc[DCcoxFJXxs3q[#<\/mark>\"<\/code><br><code>},<\/code><br><br>change secret with strong password.<br><\/li>\n\n\n\n<li>Enter this section:<br><code>\"Urls\": \"http:\/\/localhost:5000\",<\/code><br><br>* If the web api is hosted on <strong>Apache Linux<\/strong> , then <code>\"Urls\": \"http:\/\/localhost:5000\"<\/code>, <strong>should be in appsettings.json<\/strong>,then change the port according to sites-available. This thing will also be discussed when discussing hosting in Apache<br><br>* If the web api is hosted on <strong>IIS Windows <\/strong>then <strong>remove all these lines<\/strong> : <code>\"Urls\": \"http:\/\/localhost:5000\"<\/code>. This parameter is unnecessary.<\/li>\n\n\n\n<li>Next we will provide an outline steps for <a href=\"https:\/\/gsitlibrary.com\/docwebapi\/docs\/web-api-gsit-library\/web-api-testing-137\/host-api-in-apache-linux-211\/\">hosting on Apache Linux<\/a><br><\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":137,"menu_order":7,"comment_status":"open","ping_status":"closed","template":"","doc_tag":[],"class_list":["post-228","docs","type-docs","status-publish","hentry"],"blocksy_meta":"","_links":{"self":[{"href":"https:\/\/gsitlibrary.com\/docwebapi\/wp-json\/wp\/v2\/docs\/228","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/gsitlibrary.com\/docwebapi\/wp-json\/wp\/v2\/docs"}],"about":[{"href":"https:\/\/gsitlibrary.com\/docwebapi\/wp-json\/wp\/v2\/types\/docs"}],"author":[{"embeddable":true,"href":"https:\/\/gsitlibrary.com\/docwebapi\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/gsitlibrary.com\/docwebapi\/wp-json\/wp\/v2\/comments?post=228"}],"version-history":[{"count":14,"href":"https:\/\/gsitlibrary.com\/docwebapi\/wp-json\/wp\/v2\/docs\/228\/revisions"}],"predecessor-version":[{"id":261,"href":"https:\/\/gsitlibrary.com\/docwebapi\/wp-json\/wp\/v2\/docs\/228\/revisions\/261"}],"up":[{"embeddable":true,"href":"https:\/\/gsitlibrary.com\/docwebapi\/wp-json\/wp\/v2\/docs\/137"}],"wp:attachment":[{"href":"https:\/\/gsitlibrary.com\/docwebapi\/wp-json\/wp\/v2\/media?parent=228"}],"wp:term":[{"taxonomy":"doc_tag","embeddable":true,"href":"https:\/\/gsitlibrary.com\/docwebapi\/wp-json\/wp\/v2\/doc_tag?post=228"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}