/ .streamlit / config.toml
config.toml
1 [server] 2 3 # List of folders that should not be watched for changes. 4 # Relative paths will be taken as relative to the current working directory. 5 # Example: ['/home/user1/env', 'relative/path/to/folder'] 6 # Default: [] 7 folderWatchBlacklist = [] 8 9 # Change the type of file watcher used by Streamlit, or turn it off 10 # completely. 11 # Allowed values: 12 # * "auto" : Streamlit will attempt to use the watchdog module, and 13 # falls back to polling if watchdog is not available. 14 # * "watchdog" : Force Streamlit to use the watchdog module. 15 # * "poll" : Force Streamlit to always use polling. 16 # * "none" : Streamlit will not watch files. 17 # Default: "auto" 18 fileWatcherType = "auto" 19 20 # Symmetric key used to produce signed cookies. If deploying on multiple 21 # replicas, this should be set to the same value across all replicas to ensure 22 # they all share the same secret. 23 # Default: randomly generated secret key. 24 cookieSecret = "a-random-key-appears-here" 25 26 # If false, will attempt to open a browser window on start. 27 # Default: false unless (1) we are on a Linux box where DISPLAY is unset, or 28 # (2) we are running in the Streamlit Atom plugin. 29 headless = false 30 31 # Automatically rerun script when the file is modified on disk. 32 # Default: false 33 runOnSave = false 34 35 # The address where the server will listen for client and browser 36 # connections. Use this if you want to bind the server to a specific address. 37 # If set, the server will only be accessible from this address, and not from 38 # any aliases (like localhost). 39 # Default: (unset) 40 # address = 41 42 # The port where the server will listen for browser connections. 43 # Don't use port 3000 which is reserved for internal development. 44 # Default: 8501 45 port = 8501 46 47 # The base path for the URL where Streamlit should be served from. 48 # Default: "" 49 baseUrlPath = "" 50 51 # Enables support for Cross-Origin Resource Sharing (CORS) protection, for 52 # added security. 53 # Due to conflicts between CORS and XSRF, if `server.enableXsrfProtection` is 54 # on and `server.enableCORS` is off at the same time, we will prioritize 55 # `server.enableXsrfProtection`. 56 # Default: true 57 enableCORS = true 58 59 # Enables support for Cross-Site Request Forgery (XSRF) protection, for added 60 # security. 61 # Due to conflicts between CORS and XSRF, if `server.enableXsrfProtection` is 62 # on and `server.enableCORS` is off at the same time, we will prioritize 63 # `server.enableXsrfProtection`. 64 # Default: true 65 enableXsrfProtection = true 66 67 # Max size, in megabytes, for files uploaded with the file_uploader. 68 # Default: 200 69 maxUploadSize = 400 70 71 # Max size, in megabytes, of messages that can be sent via the WebSocket 72 # connection. 73 # Default: 200 74 maxMessageSize = 500 75 76 # Enables support for websocket compression. 77 # Default: false 78 enableWebsocketCompression = false 79 80 # Enable serving files from a `static` directory in the running app's 81 # directory. 82 # Default: false 83 enableStaticServing = false 84 85 # Server certificate file for connecting via HTTPS. 86 # Must be set at the same time as "server.sslKeyFile". 87 # ['DO NOT USE THIS OPTION IN A PRODUCTION ENVIRONMENT. It has not gone through 88 # security audits or performance tests. For the production environment, we 89 # recommend performing SSL termination by the load balancer or the reverse 90 # proxy.'] 91 # sslCertFile = 92 93 # Cryptographic key file for connecting via HTTPS. 94 # Must be set at the same time as "server.sslCertFile". 95 # ['DO NOT USE THIS OPTION IN A PRODUCTION ENVIRONMENT. It has not gone through 96 # security audits or performance tests. For the production environment, we 97 # recommend performing SSL termination by the load balancer or the reverse 98 # proxy.'] 99 # sslKeyFile = 100 101 [theme] 102 base="dark" 103 primaryColor="purple" 104